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, 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.

public object? CommandParameter { get; set; }

Property Value

object

DecrementCommand

The ICommand executed when the decrement button is tapped.

public ICommand? DecrementCommand { get; set; }

Property Value

ICommand

DecrementToolTip

The tooltip content for the decrement button.

public object DecrementToolTip { get; set; }

Property Value

object

IncrementCommand

The ICommand executed when the increment button is tapped.

public ICommand? IncrementCommand { get; set; }

Property Value

ICommand

IncrementToolTip

The tooltip content for the increment button.

public object IncrementToolTip { get; set; }

Property Value

object

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

Extension Methods