共用方式為


ScrollBar.LineUpCommand 欄位

定義

指令會向其值Track的值遞減方向向垂直方向小幅捲動 aScrollBar

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

欄位值

範例

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

<RepeatButton Grid.Row="0" 
              Style="{DynamicResource Scrollbar_LineButton}" 
              Command="ScrollBar.LineUpCommand" Content=" ^" />

備註

此命令將 在 中 的 約化Value為屬性值SmallChangeScrollBarTrack

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

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

XAML 文字使用方式

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

適用於

另請參閱