Color legend plain property dependency property method
The style class of Slider: the properties a style can set on it. None. Framework defaults: InheritState.FromChildren, ThumbScale (1, 1), Max 1, and the solid colors, tick colors, TickSize, TickOffset and ThumbMinSize from their DefaultSlider settings.
A class deriving from BaseStyle. The styles page shows it in context.
Names are colored by what they are: a property, a method or an event; values and fields keep the plain color.
Properties
ButtonsSolidColor 🠆
Color · The color of the end buttons and caps, without textures. (150, 150, 160) unless set (DefaultSettings.DefaultSliderButtonsColor).
LineDecreaseSolidColor 🠆
Color · The color of the track between the start and the thumb, without textures. (86, 156, 214) unless set (DefaultSettings.DefaultSliderLineDecreaseColor).
LineIncreaseSolidColor 🠆
Color · The color of the track between the thumb and the end, without textures. (150, 150, 160) unless set (DefaultSettings.DefaultSliderLineIncreaseColor).
Max 🠆
float · The largest value. Setting it below Min moves Min along. 1 unless set.
Min 🠆
float · The smallest value. Setting it above Max moves Max along. 0 unless set.
MoveToPoint 🠆
bool · When set, a click on the track moves the thumb to the clicked point instead of stepping.
Orientation 🠆
Orientation · Horizontal (the default) or Vertical. A vertical slider has Min at the bottom.
ThumbMargin 🠆
Margin · Moves the thumb across the track: it is centered in the slider’s thickness minus ThumbMargin.Top (horizontal) or ThumbMargin.Left (vertical). The other sides are not used.
ThumbMinSize 🠆
float · The smallest length of the thumb along the track, in units. It keeps a scroll bar’s thumb usable over long content. 10 unless set (DefaultSettings.DefaultSliderThumbMinSize).
ThumbScale 🠆
Vector2 · The thumb’s width (X) and height (Y) as a share of the slider’s thickness. On a scroll bar with ContentSize and ViewSize, the length along the track comes from them instead.
ThumbSolidColor 🠆
Color · The color of the thumb, without textures. (80, 80, 80) unless set (DefaultSettings.DefaultSliderThumbColor).
Tick 🠆
float · The step the value snaps to, from Min. 0 (the default) means no snapping and no tick marks.
TickOffset 🠆
int · The gap between the slider’s edge and the tick marks, in units. 2 unless set (DefaultSettings.DefaultSliderTickOffset).
TickPassedColor 🠆
Color · The color of the tick marks at or below the value. (86, 156, 214) unless set (DefaultSettings.DefaultSliderTickPassedColor).
TickPlacement 🠆
TickPlacement · Where the tick marks are drawn. None (the default) draws none.
TickRemainingColor 🠆
Color · The color of the tick marks above the value. (150, 150, 160) unless set (DefaultSettings.DefaultSliderTickRemainingColor).
TickSize 🠆
Point · The width and height of a tick mark, in units. 2 by 2 unless set (DefaultSettings.DefaultSliderTickSize).
Type 🠆
SliderType · The kind of slider: Slider (the default), SliderWithCaps, ScrollBar or ScrollBarNoButtons.
Value 🠆
float · The value, between Min and Max. A value you set is clamped to the range and snapped to the ticks.
Methods
SliderStyle()
IsSet() 🠆
IsSet(string propertyName) · Whether the property is assigned to this style, so the style applies it. Pass the name with nameof; an unknown name gives false.
| Parameter | Type | Description |
|---|---|---|
propertyName |
string |
The name of a property of the style; nameof keeps it right. |