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

Inherited properties

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

Inherited events

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Inherited methods

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Remarks

RangeBase derived classes

RangeBase is the parent class for these controls:

Constructors summary

Provides base class initialization behavior for RangeBase -derived classes.

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.

Methods summary

Called when the Maximum property changes.

Called when the Minimum property changes.

Fires the ValueChanged routed event.

Events summary

Occurs when the range value changes.

Constructors

  • RangeBase()
    RangeBase()
    RangeBase()
    RangeBase()

    Provides base class initialization behavior for RangeBase -derived classes.

    protected RangeBase()protected New()Protected Sub New()protected RangeBase()

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 doublepublic double LargeChange { get; set; }
    <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 DependencyPropertypublic static DependencyProperty LargeChangeProperty { get; }

    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 doublepublic double Maximum { get; set; }
    <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 DependencyPropertypublic static DependencyProperty MaximumProperty { get; }

    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 doublepublic double Minimum { get; set; }
    <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 DependencyPropertypublic static DependencyProperty MinimumProperty { get; }

    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 doublepublic double SmallChange { get; set; }
    <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 DependencyPropertypublic static DependencyProperty SmallChangeProperty { get; }

    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 doublepublic double Value { get; set; }
    <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 DependencyPropertypublic static DependencyProperty ValueProperty { get; }

    Property Value

Methods

  • OnMaximumChanged(Double, Double)
    OnMaximumChanged(Double, Double)
    OnMaximumChanged(Double, Double)
    OnMaximumChanged(Double, Double)

    Called when the Maximum property changes.

    protected virtual void OnMaximumChanged(Double oldMaximum, Double newMaximum)protected virtual void OnMaximumChanged(Double oldMaximum, Double newMaximum)Protected Overridable Function OnMaximumChanged(oldMaximum As Double, newMaximum As Double) As voidprotected virtual void OnMaximumChanged(Double oldMaximum, Double newMaximum)

    Parameters

    • oldMaximum
      System.Double
      System.Double
      System.Double

      Old value of the Maximum property.

    • newMaximum
      System.Double
      System.Double
      System.Double

      New value of the Maximum property.

  • OnMinimumChanged(Double, Double)
    OnMinimumChanged(Double, Double)
    OnMinimumChanged(Double, Double)
    OnMinimumChanged(Double, Double)

    Called when the Minimum property changes.

    protected virtual void OnMinimumChanged(Double oldMinimum, Double newMinimum)protected virtual void OnMinimumChanged(Double oldMinimum, Double newMinimum)Protected Overridable Function OnMinimumChanged(oldMinimum As Double, newMinimum As Double) As voidprotected virtual void OnMinimumChanged(Double oldMinimum, Double newMinimum)

    Parameters

    • oldMinimum
      System.Double
      System.Double
      System.Double

      Old value of the Minimum property.

    • newMinimum
      System.Double
      System.Double
      System.Double

      New value of the Minimum property.

  • OnValueChanged(Double, Double)
    OnValueChanged(Double, Double)
    OnValueChanged(Double, Double)
    OnValueChanged(Double, Double)

    Fires the ValueChanged routed event.

    protected virtual void OnValueChanged(Double oldValue, Double newValue)protected virtual void OnValueChanged(Double oldValue, Double newValue)Protected Overridable Function OnValueChanged(oldValue As Double, newValue As Double) As voidprotected virtual void OnValueChanged(Double oldValue, Double newValue)

    Parameters

    • oldValue
      System.Double
      System.Double
      System.Double

      Old value of the Value property.

    • newValue
      System.Double
      System.Double
      System.Double

      New value of the Value property.

Events

  • ValueChanged
    ValueChanged
    ValueChanged
    ValueChanged

    Occurs when the range value changes.

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

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

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

Details

Assembly

Windows.UI.Xaml.Controls.Primitives.dll