Table of Contents

Class ScrollBar

Namespace
Fantas.UI
Assembly
Fantas.dll

ScrollNode bar common base

public abstract class ScrollBar : SpriteNode
Inheritance
ScrollBar
Derived
Inherited Members
Extension Methods

Constructors

ScrollBar(Orientation)

ctor

protected ScrollBar(Orientation orientation)

Parameters

orientation Orientation

Fields

MinThumbSize

Minimal thumb size

public const float MinThumbSize = 32

Field Value

float

ScrollBarThickness

ScrollBar thickness

public const float ScrollBarThickness = 16

Field Value

float

ScrollThumbMargin

Margin for thumb position

public const float ScrollThumbMargin = 2

Field Value

float

Properties

Thumb

Scroll bar thumb node

public ScrollBarThumb Thumb { get; }

Property Value

ScrollBarThumb

ThumbColor

Thumb active tracking color

public Color ThumbColor { get; set; }

Property Value

Color

ThumbTrackColor

Thumb default color

public Color ThumbTrackColor { get; set; }

Property Value

Color

Value

Scroll bar position value

public abstract float Value { get; set; }

Property Value

float

Methods

OnMouseEnter()

public override void OnMouseEnter()

OnMouseLeave()

public override void OnMouseLeave()

OnPanStart(PanEventArgs)

public override void OnPanStart(PanEventArgs args)

Parameters

args PanEventArgs

Events

Scroll

Scroll event handler when thumb is moved in the ScrollBar

public event EventHandler<ScrollEventArgs> Scroll

Event Type

EventHandler<ScrollEventArgs>