RangeBase.Value Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the current setting of the range control, which may be coerced.
Namespace: System.Windows.Controls.Primitives
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
Syntax
Public Property Value As Double
public double Value { get; set; }
<rangeBase Value="double"/>
Property Value
Type: System..::.Double
The current setting of the range control, which may be coerced. The default is 0.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The new value is either NaN or IsInfinity is true. |
Remarks
Dependency property identifier field: ValueProperty
The RangeBase control typically indicates the Value property visually in some way. For example, the Slider control has a thumb that is synchronized with the Value of the control.
The Value property may be coerced. This means that if you set Value to a number that is less than the Minimum property, Value is set to Minimum. If you set Value to a number that is greater than the Maximum property, Value is set to Maximum.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone