RangeBase.Minimum property

Applies to Windows and Windows Phone

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

Syntax


public double Minimum { get; set; }


<rangeBase Minimum="double"/>

Property value

Type: System.Double [.NET] | float64 [C++]

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

Remarks

Caution  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.
  • If the bound Minimum value is greater than the default Maximum (100 for Slider and ProgressBar), the Maximum value is set equal to the Minimum value.

To avoid this behavior, declare the Binding for Maximum first in your XAML.

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls.Primitives
Windows::UI::Xaml::Controls::Primitives [C++]

Metadata

Windows.winmd

See also

RangeBase

 

 

Show:
© 2014 Microsoft