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>

備註

此命令會 ValueTrack 藉由 屬性的值 LargeChange 減少 中的 ScrollBar

當使用者按下 PAGE UP 鍵時,就會發生此命令。

當您實 ScrollBar 作 做為 控制項的一 ScrollViewer 部分時,會 ScrollViewer 執行此命令。

XAML 文字使用方式

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

適用於

另請參閱