RangeBase RangeBase RangeBase Class

Represents an element that has a value within a specific range, such as the ProgressBar, ScrollBar, and Slider controls.

Syntax

Declaration

public class RangeBasepublic class RangeBasePublic Class RangeBase

Inheritance Hierarchy

Inherited Members

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Tag
Tag
Tag
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Remarks

RangeBase derived classes

RangeBase is the parent class for these controls:

Properties summary

Gets or sets a value to be added to or subtracted from the Value of a RangeBase control.

Identifies the LargeChange dependency property.

Gets or sets the highest possible Value of the range element.

Identifies the Maximum dependency property.

Gets or sets the Minimum possible Value of the range element.

Identifies the Minimum dependency property.

Gets or sets a Value to be added to or subtracted from the Value of a RangeBase control.

Identifies the SmallChange dependency property.

Gets or sets the current setting of the range control, which may be coerced.

Identifies the Value dependency property.

Events summary

Occurs when the range value changes.

Properties

  • LargeChange
    LargeChange
    LargeChange
    LargeChange

    Gets or sets a value to be added to or subtracted from the Value of a RangeBase control.

    public double LargeChange { get; set; }public double LargeChange { get; set; }Public ReadWrite Property LargeChange As double
    <rangeBase LargeChange="double"/>
    

    Property Value

    • double
      double
      double

      Value to add to or subtract from the Value of the RangeBase element. The default is 1.

    Remarks

    Slider overrides the metadata of this property and sets its default to 10. For more information, see Dependency properties overview.

  • LargeChangeProperty
    LargeChangeProperty
    LargeChangeProperty
    LargeChangeProperty

    Identifies the LargeChange dependency property.

    public static DependencyProperty LargeChangeProperty { get; }public static DependencyProperty LargeChangeProperty { get; }Public Static ReadOnly Property LargeChangeProperty As DependencyProperty

    Property Value

  • Maximum
    Maximum
    Maximum
    Maximum

    Gets or sets the highest possible Value of the range element.

    public double Maximum { get; set; }public double Maximum { get; set; }Public ReadWrite Property Maximum As double
    <rangeBase Maximum="double"/>
    

    Property Value

    • double
      double
      double

      The highest possible Value of the range element. The default is 1.

    Remarks

    Slider and ProgressBar override the metadata of this property and set its default to 100. For more information, see Dependency properties overview.

    Note

    When binding Minimum and Maximum values in Extensible Application Markup Language (XAML), declare the Binding for Maximum first. If the Binding for Maximum is declared after Minimum, the bound value for Maximum is ignored and the following situations can occur: + If the bound Minimum value is negative, the Maximum value is set to 0.

    These behaviors can also occur if you set the Minimum value without also explicitly setting the Maximum value.

  • MaximumProperty
    MaximumProperty
    MaximumProperty
    MaximumProperty

    Identifies the Maximum dependency property.

    public static DependencyProperty MaximumProperty { get; }public static DependencyProperty MaximumProperty { get; }Public Static ReadOnly Property MaximumProperty As DependencyProperty

    Property Value

  • Minimum
    Minimum
    Minimum
    Minimum

    Gets or sets the Minimum possible Value of the range element.

    public double Minimum { get; set; }public double Minimum { get; set; }Public ReadWrite Property Minimum As double
    <rangeBase Minimum="double"/>
    

    Property Value

    • double
      double
      double

      Minimum possible Value of the range element. The default is 0.

    Remarks

    Note

    When binding Minimum and Maximum values in Extensible Application Markup Language (XAML), declare the Binding for Maximum first. If the Binding for Maximum is declared after Minimum, the bound value for Maximum is ignored and the following situations can occur: + If the bound Minimum value is negative, the Maximum value is set to 0.

    These behaviors can also occur if you set the Minimum value without also explicitly setting the Maximum value.

  • MinimumProperty
    MinimumProperty
    MinimumProperty
    MinimumProperty

    Identifies the Minimum dependency property.

    public static DependencyProperty MinimumProperty { get; }public static DependencyProperty MinimumProperty { get; }Public Static ReadOnly Property MinimumProperty As DependencyProperty

    Property Value

  • SmallChange
    SmallChange
    SmallChange
    SmallChange

    Gets or sets a Value to be added to or subtracted from the Value of a RangeBase control.

    public double SmallChange { get; set; }public double SmallChange { get; set; }Public ReadWrite Property SmallChange As double
    <rangeBase SmallChange="double"/>
    

    Property Value

    • double
      double
      double

      Value to add to or subtract from the Value of the RangeBase element. The default is 0.1.

    Remarks

    Slider overrides the metadata of this property and sets its default to 1. For more information, see Dependency properties overview.

  • SmallChangeProperty
    SmallChangeProperty
    SmallChangeProperty
    SmallChangeProperty

    Identifies the SmallChange dependency property.

    public static DependencyProperty SmallChangeProperty { get; }public static DependencyProperty SmallChangeProperty { get; }Public Static ReadOnly Property SmallChangeProperty As DependencyProperty

    Property Value

  • Value
    Value
    Value
    Value

    Gets or sets the current setting of the range control, which may be coerced.

    public double Value { get; set; }public double Value { get; set; }Public ReadWrite Property Value As double
    <rangeBase Value="double"/>
    

    Property Value

    • double
      double
      double

      The current setting of the range control, which may be coerced. The default is 0.

  • ValueProperty
    ValueProperty
    ValueProperty
    ValueProperty

    Identifies the Value dependency property.

    public static DependencyProperty ValueProperty { get; }public static DependencyProperty ValueProperty { get; }Public Static ReadOnly Property ValueProperty As DependencyProperty

    Property Value

Events

  • ValueChanged
    ValueChanged
    ValueChanged
    ValueChanged

    Occurs when the range value changes.

    public event RangeBaseValueChangedEventHandler ValueChangedpublic event RangeBaseValueChangedEventHandler ValueChangedPublic Event ValueChanged
    <rangeBase ValueChanged="eventhandler"/>
    

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute
Windows.Foundation.Metadata.ComposableAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.UI.Xaml.Controls.Primitives.dll