Class Track
Implements composite control for Thumb and two Repeat Buttons used for scrolling controls
Inherited Members
Namespace: EmptyKeys.UserInterface.Controls.Primitives
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class Track : UIElement
Constructors
Track()
Initializes a new instance of the Track class.
Declaration
public Track()
Fields
IsDirectionReversedProperty
The is direction reversed property
Declaration
public static readonly DependencyProperty IsDirectionReversedProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
MaximumProperty
The maximum property
Declaration
public static readonly DependencyProperty MaximumProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
MinimumProperty
The minimum property
Declaration
public static readonly DependencyProperty MinimumProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
OrientationProperty
The orientation property
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ValueProperty
The value property
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ViewportSizeProperty
The view port size property
Declaration
public static readonly DependencyProperty ViewportSizeProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
DecreaseRepeatButton
Gets or sets the decrease repeat button.
Declaration
public RepeatButton DecreaseRepeatButton { get; set; }
Property Value
Type | Description |
---|---|
RepeatButton | The decrease repeat button. |
IncreaseRepeatButton
Gets or sets the increase repeat button.
Declaration
public RepeatButton IncreaseRepeatButton { get; set; }
Property Value
Type | Description |
---|---|
RepeatButton | The increase repeat button. |
IsDirectionReversed
Gets or sets a value indicating whether this instance is direction reversed.
Declaration
public bool IsDirectionReversed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Maximum
Gets or sets the maximum.
Declaration
public float Maximum { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The maximum. |
Minimum
Gets or sets the minimum.
Declaration
public float Minimum { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The minimum. |
Orientation
Gets or sets the orientation.
Declaration
public Orientation Orientation { get; set; }
Property Value
Type | Description |
---|---|
Orientation | The orientation. |
Thumb
Gets or sets the thumb.
Declaration
public Thumb Thumb { get; set; }
Property Value
Type | Description |
---|---|
Thumb | The thumb. |
Value
Gets or sets the value.
Declaration
public float Value { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The value. |
ViewportSize
Gets or sets the size of the view port.
Declaration
public float ViewportSize { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The size of the view port. |
Methods
ArrangeOverride(Size)
Arrange layout pass - overrider method for children
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Size | finalSize | The final size. |
Returns
Type | Description |
---|---|
EmptyKeys.UserInterface.Size |
Overrides
InvalidateIsEnabledOnChildren()
Invalidates the IsEnabled property value on children.
Declaration
protected override void InvalidateIsEnabledOnChildren()
Overrides
MeasureOverride(Size)
Measure layout pass
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Size | availableSize | available size for element |
Returns
Type | Description |
---|---|
EmptyKeys.UserInterface.Size |
Overrides
OnDraw(Renderer, Double, Single)
Called when [draw].
Declaration
protected override void OnDraw(Renderer spriterenderer, double elapsedGameTime, float opacity)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Renderers.Renderer | spriterenderer | The sprite renderer. |
System.Double | elapsedGameTime | The elapsed game time. |
System.Single | opacity | The opacity. |
Overrides
ValueFromDistance(Single, Single)
Value from distance.
Declaration
public float ValueFromDistance(float horizontal, float vertical)
Parameters
Type | Name | Description |
---|---|---|
System.Single | horizontal | The horizontal distance |
System.Single | vertical | The vertical distance |
Returns
Type | Description |
---|---|
System.Single |
ValueFromPoint(PointF)
Calculates value from point.
Declaration
public float ValueFromPoint(PointF point)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.PointF | point | The point. |
Returns
Type | Description |
---|---|
System.Single |