RangeBase.Minimum 属性

定义

获取或设置范围元素的 Minimum 可能的 ValueGets or sets the Minimum possible Value of the range element.

public:
 property double Minimum { double get(); void set(double value); };
[System.ComponentModel.Bindable(true)]
public double Minimum { get; set; }
member this.Minimum : double with get, set
Public Property Minimum As Double

属性值

范围元素的 Minimum 可能 ValueMinimum possible Value of the range element. 默认值为 0。The default is 0.

属性

示例

RangeBase控件 (如SliderProgressBar ) 继承RangeBase属性。RangeBase controls such as Slider and ProgressBar inherit the RangeBase properties. 下面的示例演示一个Slider Minimum使用属性的。The following example shows a Slider that uses the Minimum property.

Slider hslider = new Slider();
hslider.Width = 100;
hslider.Orientation = Orientation.Horizontal;
hslider.IsSnapToTickEnabled = true;
hslider.Minimum = 1;
hslider.Maximum = 20;
hslider.TickPlacement = TickPlacement.Both;
hslider.TickFrequency = 2;
hslider.AutoToolTipPlacement =
  AutoToolTipPlacement.BottomRight;
cv1.Children.Add(hslider);
Dim hslider As New Slider()
hslider.Width = 100
hslider.Orientation = Orientation.Horizontal
hslider.IsSnapToTickEnabled = True
hslider.Minimum = 1
hslider.Maximum = 20
hslider.TickPlacement = TickPlacement.Both
hslider.TickFrequency = 2
hslider.AutoToolTipPlacement = AutoToolTipPlacement.BottomRight
cv1.Children.Add(hslider)
<Slider Name="slider1" 
        Width="100" 
        Orientation="Horizontal" HorizontalAlignment="Left" 
        IsSnapToTickEnabled="True" Minimum="1" Maximum="20" 
        TickPlacement="Both"  TickFrequency="2"
        AutoToolTipPlacement="BottomRight"/>

注解

依赖项属性信息Dependency Property Information

标识符字段Identifier field MinimumProperty
元数据属性设置为trueMetadata properties set to true NoneNone

适用于