Interface ISliderBuilder
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
propertyNamestring
Returns
WithBorderColor(string)
Sets the color of an outline drawn around the track.
ISliderBuilder WithBorderColor(string colorHex)
Parameters
colorHexstring
Returns
WithBorderThickness(int)
Sets the border's width in pixels. Has no effect without a border color.
ISliderBuilder WithBorderThickness(int thickness)
Parameters
thicknessint
Returns
WithFillColor(string)
Sets the color of the filled part of the track.
ISliderBuilder WithFillColor(string colorHex)
Parameters
colorHexstring
Returns
WithFillGradient(string)
Sets a gradient for the filled part, naming a Gradient resource.
ISliderBuilder WithFillGradient(string gradientId)
Parameters
gradientIdstring
Returns
WithFocusColor(string)
Sets the outline drawn around the handle while the slider has keyboard focus.
ISliderBuilder WithFocusColor(string colorHex)
Parameters
colorHexstring
Returns
WithLiveUpdate(bool)
Sets whether dragging writes the value back as it goes, or only when the handle is released.
ISliderBuilder WithLiveUpdate(bool liveUpdate)
Parameters
liveUpdatebool
Returns
WithMaximum(float)
Sets the value at the right end of the slider.
ISliderBuilder WithMaximum(float maximum)
Parameters
maximumfloat
Returns
WithMinimum(float)
Sets the value at the left end of the slider.
ISliderBuilder WithMinimum(float minimum)
Parameters
minimumfloat
Returns
WithSize(int, int)
Sets the slider's size in pixels. The handle spans its full height.
ISliderBuilder WithSize(int width, int height)
Parameters
Returns
WithStep(float)
Sets the increment the value snaps to. Zero means no snapping.
ISliderBuilder WithStep(float step)
Parameters
stepfloat
Returns
WithThumbColor(string)
Sets the color of the handle.
ISliderBuilder WithThumbColor(string colorHex)
Parameters
colorHexstring
Returns
WithThumbWidth(int)
Sets how wide the handle is, in pixels.
ISliderBuilder WithThumbWidth(int width)
Parameters
widthint
Returns
WithTrackColor(string)
Sets the color of the full-length track behind the fill.
ISliderBuilder WithTrackColor(string colorHex)
Parameters
colorHexstring
Returns
WithTrackHeight(int)
Sets how tall the track is, in pixels, centered in the slider.
ISliderBuilder WithTrackHeight(int height)
Parameters
heightint
Returns
WithValue(float)
Sets the current value, between the minimum and maximum.
ISliderBuilder WithValue(float value)
Parameters
valuefloat