共用方式為


ScrollBar.PageLeftCommand 欄位

定義

指令會將 a 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>

備註

此指令將 Value 在 中 ScrollBarTrack 減去屬性的LargeChange值。

當使用者按下位於 . 左側的頁面按鈕 Thumb時,會執行此指令。 以下插圖展示了頁面按鈕的 ScrollBar

ScrollBar 的不同部分

當你將 a ScrollBar 作為控制項的一部分 ScrollViewer 實作時,會 ScrollViewer 執行這個指令。

XAML 文字使用方式

< 物件屬性="ScrollBar.PageLeftCommand"/>

適用於

另請參閱