Table of Contents

Interface ISliderBuilder

Namespace
BSGameLib.UI.Builder
Assembly
BSGameLib.UI.dll

A slider, the Slider element of a view file, built in C#.

public interface ISliderBuilder : IControlBuilder<ISliderBuilder>
Inherited Members

Methods

BindValue(string)

Binds the value to the view model property propertyName, and writes it back as the slider moves.

ISliderBuilder BindValue(string propertyName)

Parameters

propertyName string

Returns

ISliderBuilder

WithBorderColor(string)

Sets the color of an outline drawn around the track.

ISliderBuilder WithBorderColor(string colorHex)

Parameters

colorHex string

Returns

ISliderBuilder

WithBorderThickness(int)

Sets the border's width in pixels. Has no effect without a border color.

ISliderBuilder WithBorderThickness(int thickness)

Parameters

thickness int

Returns

ISliderBuilder

WithFillColor(string)

Sets the color of the filled part of the track.

ISliderBuilder WithFillColor(string colorHex)

Parameters

colorHex string

Returns

ISliderBuilder

WithFillGradient(string)

Sets a gradient for the filled part, naming a Gradient resource.

ISliderBuilder WithFillGradient(string gradientId)

Parameters

gradientId string

Returns

ISliderBuilder

WithFocusColor(string)

Sets the outline drawn around the handle while the slider has keyboard focus.

ISliderBuilder WithFocusColor(string colorHex)

Parameters

colorHex string

Returns

ISliderBuilder

WithLiveUpdate(bool)

Sets whether dragging writes the value back as it goes, or only when the handle is released.

ISliderBuilder WithLiveUpdate(bool liveUpdate)

Parameters

liveUpdate bool

Returns

ISliderBuilder

WithMaximum(float)

Sets the value at the right end of the slider.

ISliderBuilder WithMaximum(float maximum)

Parameters

maximum float

Returns

ISliderBuilder

WithMinimum(float)

Sets the value at the left end of the slider.

ISliderBuilder WithMinimum(float minimum)

Parameters

minimum float

Returns

ISliderBuilder

WithSize(int, int)

Sets the slider's size in pixels. The handle spans its full height.

ISliderBuilder WithSize(int width, int height)

Parameters

width int
height int

Returns

ISliderBuilder

WithStep(float)

Sets the increment the value snaps to. Zero means no snapping.

ISliderBuilder WithStep(float step)

Parameters

step float

Returns

ISliderBuilder

WithThumbColor(string)

Sets the color of the handle.

ISliderBuilder WithThumbColor(string colorHex)

Parameters

colorHex string

Returns

ISliderBuilder

WithThumbWidth(int)

Sets how wide the handle is, in pixels.

ISliderBuilder WithThumbWidth(int width)

Parameters

width int

Returns

ISliderBuilder

WithTrackColor(string)

Sets the color of the full-length track behind the fill.

ISliderBuilder WithTrackColor(string colorHex)

Parameters

colorHex string

Returns

ISliderBuilder

WithTrackHeight(int)

Sets how tall the track is, in pixels, centered in the slider.

ISliderBuilder WithTrackHeight(int height)

Parameters

height int

Returns

ISliderBuilder

WithValue(float)

Sets the current value, between the minimum and maximum.

ISliderBuilder WithValue(float value)

Parameters

value float

Returns

ISliderBuilder