Skip to end of metadata
Go to start of metadata

Remarks

UXSliderBar is built around the commanding semantics which allows the value changing interaction to be executed through declarative definition in the XAML markup. The commanding semantics is also an ideal approach for MVVM pattern development.

UXSliderBar already includes several predefined commands to change the selected value that you can use in your application.

  • DecreaseSmall

    Gets a command that decreases the value of the UXSliderBar by the same amount as the SmallChange property.

    DecreaseSmall command will be invoked when you perform the following action:

    • Press the left handle button in horizontal UXSliderBar or the bottom handle button in vertical UXSliderBar.
    • Press the left or down keyboard key.
  • DecreaseLarge

    Gets a command that decreases the value of the UXSliderBar by the same amount as the LargeChange property.

    DecreaseLarge command will be invoked when you perform the following action:

    • Press the decrease button.
    • Press the PageDown keyboard key.
  • IncreaseSmall

    Gets a command that increases the value of the UXSliderBar by the same amount as the SmallChange property.

    IncreaseSmall command will be invoked when you perform the following action:

    • Press the right handle button in horizontal UXSliderBar or the top handle button in vertical UXSliderBar.
    • Press the right or down keyboard key.
  • IncreaseLarge

    Gets a command that increases the value of the UXSliderBar by the same amount as the LargeChange property.

    IncreaseLarge command will be invoked when you perform the following action:

    • Press the increase button.
    • Press the PageUp keyboard key.
  • Minimize

    Gets a command that sets the value of UXSliderBar to the value of Minimum property.

    Minimize command will be invoked when you press the Home keyboard key.

  • Maximize

    Gets a command that sets the value of UXSliderBar to the value of Maximum property.

    Maximize command will be invoked when you press the End keybord key.

Working with DecreaseLarge Property

In UXSliderBar, DecreaseLarge command will be invoked when you perform the following action:

  • Press the decrease button.
  • Press the PageDown keyboard key.

In UXRangeSliderBar, DecreaseLarge command will be invoked when you perform the following action:

  • Press the decrease button.

    The value of SelectionStart property will be subtracted.

  • Press the middle decrease button.

    The value of SelectionEnd property will be subtracted.

  • Press the PageDown keyboard key.

    If the left or bottom UXThumb is active, the value of SelectionStart will be subtracted. If the right or top UXThumb is active, the value of SelectionEnd property will be subtracted.

Working with DecreaseSmall Property

In UXSliderBar, DecreaseSmall command will be invoked when you perform the following action:

  • Press the left handle button in horizontal UXSliderBar or the bottom handle button in vertical UXSliderBar.
  • Press the left or down keyboard key.

In UXRangeSliderBar, DecreaseSmall command will be invoked when you perform the following action:

Working with IncreaseLarge Property

In UXSliderBar, IncreaseLarge command will be invoked when you perform the following action:

  • Press the increase button.
  • Press the PageUp keyboard key.

In UXRangeSliderBar, IncreaseLarge command will be invoked when you perform the following action:

  • Press the increase button.

    The value of SelectionEnd property will be added.

  • Press the middle increase button.

    The value of SelectionStart property will be added.

  • Press the PageUp keyboard key.

    If the left or bottom UXThumb is active, the value of SelectionStart will be added. If the right or top UXThumb is active, the value of SelectionEnd property will be added.

Working with IncreaseSmall Property

In UXSliderBar, IncreaseSmall command will be invoked when you perform the following action:

  • Press the right handle button in horizontal UXSliderBar or the top handle button in vertical UXSliderBar.
  • Press the right or down keyboard key.

In UXRangeSliderBar, IncreaseSmall command will be invoked when you perform the following action:

Working with Maximize Property

Maximize command will be invoked when you press the End keybord key.

Working with Minimize Property

In UXSliderBar, Minimize command will be invoked when you press the Home keyboard key.

Definition

public class SliderCommands

Summary

The following table summarizes the members exposed in this class.

Public Constructors

SliderCommands Constructor()Initializes a new instance of the SliderCommands class.

Static Properties

DecreaseLargeIdentifies the DecreaseLarge routed command.
DecreaseSmallIdentifies the DecreaseSmall routed command.
IncreaseLargeIdentifies the IncreaseLarge routed command.
IncreaseSmallIdentifies the IncreaseSmall routed command.
MaximizeIdentifies the Maximize routed command.
MinimizeIdentifies the Minimize routed command.

Public Constructors

public SliderCommands()

 

Static Properties

public static RoutedUICommand DecreaseLarge { get; }

Identifies the DecreaseLarge routed command.

public static RoutedUICommand DecreaseSmall { get; }

Identifies the DecreaseSmall routed command.

public static RoutedUICommand IncreaseLarge { get; }

Identifies the IncreaseLarge routed command.

public static RoutedUICommand IncreaseSmall { get; }

Identifies the IncreaseSmall routed command.

public static RoutedUICommand Maximize { get; }

Identifies the Maximize routed command.

Remarks

Maximize command will be invoked when you press the End keybord key.

 

public static RoutedUICommand Minimize { get; }

Identifies the Minimize routed command.

  • No labels