In This Article

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
Inheritance:
object Visual UIElement FrameworkElement Control object

Constructors

Spinner()

Initializes an instance of the Spinner class.

public Spinner()

Properties

CommandParameter

Gets or sets the command parameters to use with the buttons.

public object CommandParameter { get; set; }

Property Value

object:

The command parameters to use with the buttons.

DecrementCommand

Gets or sets the ICommand executed when the decrement button is tapped.

public ICommand DecrementCommand { get; set; }

Property Value

ICommand:

The ICommand executed when the decrement button is tapped.

DecrementToolTip

Gets or sets the tooltip content for the decrement button.

public object DecrementToolTip { get; set; }

Property Value

object:

The tooltip content for the decrement button.

IncrementCommand

Gets or sets the ICommand executed when the increment button is tapped.

public ICommand IncrementCommand { get; set; }

Property Value

ICommand:

The ICommand executed when the increment button is tapped.

IncrementToolTip

Gets or sets the tooltip content for the increment button.

public object IncrementToolTip { get; set; }

Property Value

object:

The tooltip content for the increment button.

Orientation

Gets or sets the Orientation of the spinner.

public Orientation Orientation { get; set; }

Property Value

Orientation:

The Orientation of the spinner. The default value is Vertical.

Methods

OnApplyTemplate()

Invoked whenever application code or internal processes call ApplyTemplate.

public override void OnApplyTemplate()

Fields

CommandParameterProperty

Identifies the CommandParameter dependency property. This field is read-only.

public static readonly DependencyProperty CommandParameterProperty

DecrementCommandProperty

Identifies the DecrementCommand dependency property. This field is read-only.

public static readonly DependencyProperty DecrementCommandProperty

DecrementToolTipProperty

Identifies the DecrementToolTip dependency property. This field is read-only.

public static readonly DependencyProperty DecrementToolTipProperty

IncrementCommandProperty

Identifies the IncrementCommand dependency property. This field is read-only.

public static readonly DependencyProperty IncrementCommandProperty

IncrementToolTipProperty

Identifies the IncrementToolTip dependency property. This field is read-only.

public static readonly DependencyProperty IncrementToolTipProperty

OrientationProperty

Identifies the Orientation dependency property. This field is read-only.

public static readonly DependencyProperty OrientationProperty