ScrollBar.PageLeftCommand 字段

定义

按照其 ScrollBar 的减小值的水平方向大量滚动 Track 的命令。

public: static initonly System::Windows::Input::RoutedCommand ^ PageLeftCommand;
public static readonly System.Windows.Input.RoutedCommand PageLeftCommand;
 staticval mutable PageLeftCommand : System.Windows.Input.RoutedCommand
Public Shared ReadOnly PageLeftCommand As RoutedCommand 

字段值

示例

以下示例演示如何在自定义ScrollBar样式模板中指定 PageLeftCommand

<Style x:Key="ScrollBar_LeftTrack" 
       BasedOn="{StaticResource ScrollBar_TrackRepeater}" 
       TargetType="{x:Type RepeatButton}">
  <Setter Property="Command" Value="ScrollBar.PageLeftCommand" />
</Style>

注解

此命令按 ValueTrack 属性的值减小 中 ScrollBar 的 。LargeChange

当用户按下 左侧 Thumb的页面按钮时,将发生此命令。 下图显示了 中的 ScrollBar页面按钮。

ScrollBar 的不同部分

当你实现 ScrollBar 作为 控件的一 ScrollViewer 部分时, ScrollViewer 将执行此命令。

XAML 文本用法

<object属性="ScrollBar.PageLeftCommand"/>

适用于

另请参阅