Track.DecreaseRepeatButton 属性

定义

获取减小 RepeatButtonValue 属性的 Track

public:
 property System::Windows::Controls::Primitives::RepeatButton ^ DecreaseRepeatButton { System::Windows::Controls::Primitives::RepeatButton ^ get(); void set(System::Windows::Controls::Primitives::RepeatButton ^ value); };
public System.Windows.Controls.Primitives.RepeatButton DecreaseRepeatButton { get; set; }
member this.DecreaseRepeatButton : System.Windows.Controls.Primitives.RepeatButton with get, set
Public Property DecreaseRepeatButton As RepeatButton

属性值

按下 RepeatButton 时减小 Value 控件的 TrackRepeatButton。 默认值为具有默认设置的 RepeatButton 控件。

示例

下面的示例演示当 属性为 时Orientation,如何在DecreaseRepeatButton控件模板中ScrollBar定义 和 IncreaseRepeatButton 样式。Vertical 有关完整示例,请参阅 ScrollBar 样式和模板

<Track Grid.Row="1" Name="PART_Track"
       IsDirectionReversed="true">
  <Track.DecreaseRepeatButton>
    <RepeatButton Style="{DynamicResource ScrollBar_UpTrack}"/>
  </Track.DecreaseRepeatButton>
  <Track.Thumb>
    <Thumb Style="{DynamicResource ScrollBar_HorizontalThumb}"/>
  </Track.Thumb>
  <Track.IncreaseRepeatButton>
    <RepeatButton Style="{DynamicResource ScrollBar_DownTrack}"/>
  </Track.IncreaseRepeatButton>
</Track>

注解

Track当控件位于 控件中时SliderDelay控件的属性RepeatButtonTrack将绑定到 Delay 控件Slider的 属性。

适用于

另请参阅