Spinner Class
Represents a spinner control, which offers up/down or left/right buttons.
[TemplateVisualState(Name = "Horizontal", GroupName = "OrientationStates")]
[TemplateVisualState(Name = "Vertical", GroupName = "OrientationStates")]
public class Spinner : Control, IOrientedElement
- Inheritance:
- object Visual UIElement FrameworkElement Control object
- Implements:
- IOrientedElement
Constructors
Spinner()
Initializes an instance of the class.
public Spinner()
Properties
CommandParameter
The command parameters to use with the buttons.
DecrementCommand
The ICommand executed when the decrement button is tapped.
DecrementToolTip
The tooltip content for the decrement button.
IncrementCommand
The ICommand executed when the increment button is tapped.
IncrementToolTip
The tooltip content for the increment button.
Orientation
The orientation of the element.
public Orientation Orientation { get; set; }
Property Value
- Orientation:
The default value is
Vertical.
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().
public override void OnApplyTemplate()
Fields
CommandParameterProperty
Defines the CommandParameter property.
public static readonly DependencyProperty CommandParameterProperty
DecrementCommandProperty
Defines the DecrementCommand property.
public static readonly DependencyProperty DecrementCommandProperty
DecrementToolTipProperty
Defines the DecrementToolTip property.
public static readonly DependencyProperty DecrementToolTipProperty
IncrementCommandProperty
Defines the IncrementCommand property.
public static readonly DependencyProperty IncrementCommandProperty
IncrementToolTipProperty
Defines the IncrementToolTip property.
public static readonly DependencyProperty IncrementToolTipProperty
OrientationProperty
Defines the Orientation property.
public static readonly DependencyProperty OrientationProperty