Edit

Share via


RangeSelector Class

Definition

RangeSelector is a "double slider" control for range values.

[Windows.UI.Xaml.TemplatePart(Name="OutOfRangeContentContainer", Type=typeof(Windows.UI.Xaml.Controls.Border))]
[Windows.UI.Xaml.TemplatePart(Name="ActiveRectangle", Type=typeof(Windows.UI.Xaml.Shapes.Rectangle))]
[Windows.UI.Xaml.TemplatePart(Name="MinThumb", Type=typeof(Windows.UI.Xaml.Controls.Primitives.Thumb))]
[Windows.UI.Xaml.TemplatePart(Name="MaxThumb", Type=typeof(Windows.UI.Xaml.Controls.Primitives.Thumb))]
[Windows.UI.Xaml.TemplatePart(Name="ContainerCanvas", Type=typeof(Windows.UI.Xaml.Controls.Canvas))]
[Windows.UI.Xaml.TemplatePart(Name="ControlGrid", Type=typeof(Windows.UI.Xaml.Controls.Grid))]
[Windows.UI.Xaml.TemplatePart(Name="ToolTip", Type=typeof(Windows.UI.Xaml.Controls.Grid))]
[Windows.UI.Xaml.TemplatePart(Name="ToolTipText", Type=typeof(Windows.UI.Xaml.Controls.TextBlock))]
[Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="Normal")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="MinPressed")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="MaxPressed")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="Disabled")]
public class RangeSelector : Windows.UI.Xaml.Controls.Control
[<Windows.UI.Xaml.TemplatePart(Name="OutOfRangeContentContainer", Type=typeof(Windows.UI.Xaml.Controls.Border))>]
[<Windows.UI.Xaml.TemplatePart(Name="ActiveRectangle", Type=typeof(Windows.UI.Xaml.Shapes.Rectangle))>]
[<Windows.UI.Xaml.TemplatePart(Name="MinThumb", Type=typeof(Windows.UI.Xaml.Controls.Primitives.Thumb))>]
[<Windows.UI.Xaml.TemplatePart(Name="MaxThumb", Type=typeof(Windows.UI.Xaml.Controls.Primitives.Thumb))>]
[<Windows.UI.Xaml.TemplatePart(Name="ContainerCanvas", Type=typeof(Windows.UI.Xaml.Controls.Canvas))>]
[<Windows.UI.Xaml.TemplatePart(Name="ControlGrid", Type=typeof(Windows.UI.Xaml.Controls.Grid))>]
[<Windows.UI.Xaml.TemplatePart(Name="ToolTip", Type=typeof(Windows.UI.Xaml.Controls.Grid))>]
[<Windows.UI.Xaml.TemplatePart(Name="ToolTipText", Type=typeof(Windows.UI.Xaml.Controls.TextBlock))>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="Normal")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="MinPressed")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="MaxPressed")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="Disabled")>]
type RangeSelector = class
    inherit Control
Public Class RangeSelector
Inherits Control
Inheritance
Windows.UI.Xaml.Controls.Control
RangeSelector
Attributes
Windows.UI.Xaml.TemplatePartAttribute Windows.UI.Xaml.TemplateVisualStateAttribute

Constructors

RangeSelector()

Initializes a new instance of the RangeSelector class. Create a default range selector control.

Fields

MaximumProperty

Identifies the Maximum property.

MinimumProperty

Identifies the Minimum property.

RangeEndProperty

Identifies the RangeEnd property.

RangeMaxProperty

Identifies the RangeMax dependency property.

RangeMinProperty

Identifies the RangeMin dependency property.

RangeStartProperty

Identifies the RangeStart property.

StepFrequencyProperty

Identifies the StepFrequency property.

Properties

Maximum

Gets or sets the absolute maximum value of the range.

Minimum

Gets or sets the absolute minimum value of the range.

RangeEnd

Gets or sets the current selected upper limit value of the range, modifiable by the user.

RangeMax

Gets or sets the current upper limit value of the range.

RangeMin

Gets or sets the current lower limit value of the range.

RangeStart

Gets or sets the current selected lower limit value of the range, modifiable by the user.

StepFrequency

Gets or sets the value part of a value range that steps should be created for.

Methods

OnApplyTemplate()

Update the visual state of the control when its template is changed.

OnThumbDragCompleted(DragCompletedEventArgs)

Called before the ThumbDragCompleted event occurs.

OnThumbDragStarted(DragStartedEventArgs)

Called before the ThumbDragStarted event occurs.

OnValueChanged(RangeChangedEventArgs)

Called before the ValueChanged event occurs.

Events

ThumbDragCompleted

Event raised when lower or upper range thumbs end being dragged.

ThumbDragStarted

Event raised when lower or upper range thumbs start being dragged.

ValueChanged

Event raised when lower or upper range values are changed.

Applies to