Track.IncreaseRepeatButton 属性

定义

获取增加 RepeatButtonValue 属性的 Track

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

属性值

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

示例

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

<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的 属性。

适用于

另请参阅