ScrollBar.PageRightCommand 字段

定义

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

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

字段值

示例

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

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

注解

此命令按 属性的值增加 ValueTrackScrollBar 的 。LargeChange

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

ScrollBar 的不同部分

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

XAML 文本用法

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

适用于

另请参阅