ScrollBar.PageLeftCommand 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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 在 中 ScrollBar 的 Track 減去屬性的LargeChange值。
當使用者按下位於 . 左側的頁面按鈕 Thumb時,會執行此指令。 以下插圖展示了頁面按鈕的 ScrollBar。
當你將 a ScrollBar 作為控制項的一部分 ScrollViewer 實作時,會 ScrollViewer 執行這個指令。
XAML 文字使用方式
<
物件屬性="ScrollBar.PageLeftCommand"/>