共用方式為


ScrollBar.LineLeftCommand 欄位

定義

指令會將 a ScrollBar 向其值 Track遞減的水平方向向小幅度捲動。

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

欄位值

範例

以下範例展示了如何在自訂ScrollBar樣式範本中指定 。LineLeftCommand

<RepeatButton Grid.Column="0" 
              Style="{DynamicResource Scrollbar_LineButton}" 									
              Command="ScrollBar.LineLeftCommand" Content=" <" />

備註

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

當使用者按下左 RepeatButton鍵時,此指令會發生。

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

XAML 文字使用方式

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

適用於

另請參閱