共用方式為


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>

備註

此指令將 的 TrackScrollBar 增加 Value ,使該房產的價值LargeChange增加。

當使用者按下頁面右側 Thumb的頁面按鈕時,會觸發此指令。 以下插圖展示了頁面按鈕的 ScrollBar

ScrollBar 的不同部分

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

XAML 文字使用方式

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

適用於

另請參閱