ScrollBar.PageUpCommand 字段

定义

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

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

字段值

示例

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

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

注解

此命令按 Value 属性的值Track减少 中 ScrollBar 的 。LargeChange

当用户按下 PAGE UP 键时,将发生此命令。

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

XAML 文本用法

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

适用于

另请参阅