Table of Contents

Class Slider

Namespace
GHIElectronics.Endpoint.UI.Controls
Assembly
GHIElectronics.Endpoint.UI.dll

The Slider component lets users select a value by sliding a knob along a track.

public class Slider : ContentControl
Inheritance
Slider
Inherited Members

Constructors

Slider(int, int)

Creates a new Slider component.

public Slider(int width, int height)

Parameters

width int

Width

height int

Height

Properties

Alpha

public ushort Alpha { get; set; }

Property Value

ushort

Color

public Color Color { get; set; }

Property Value

Color

Direction

Direction of the slider; horizontal or vertical.

public Orientation Direction { get; set; }

Property Value

Orientation

KnobSize

Size of the knob.

public int KnobSize { get; set; }

Property Value

int

Maximum

Maximum value.

public double Maximum { get; set; }

Property Value

double

Minimum

Minimum value.

public double Minimum { get; set; }

Property Value

double

SnapInterval

Increment by which the value is increased or decreased as the user slides the knob.

public int SnapInterval { get; set; }

Property Value

int

TickInterval

Tick mark spacing relative to the maximum value.

public int TickInterval { get; set; }

Property Value

int

Value

Gets or sets the current value.

public double Value { get; set; }

Property Value

double

Methods

Dispose()

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

~Slider()

protected ~Slider()

OnRender(DrawingContext)

Renders the Slider onto it's parent container's graphics.

public override void OnRender(DrawingContext dc)

Parameters

dc DrawingContext

OnTouchDown(TouchEventArgs)

Handles the touch down event.

protected override void OnTouchDown(TouchEventArgs e)

Parameters

e TouchEventArgs

Touch event arguments.

OnTouchMove(TouchEventArgs)

Handles the touch move event.

protected override void OnTouchMove(TouchEventArgs e)

Parameters

e TouchEventArgs

Touch event arguments.

OnTouchUp(TouchEventArgs)

Handles the touch up event.

protected override void OnTouchUp(TouchEventArgs e)

Parameters

e TouchEventArgs

Touch event arguments.

Events

OnValueChanged

Value changed event.

public event Slider.ValueChangedEventHandler OnValueChanged

Event Type

Slider.ValueChangedEventHandler