ScrollBar.LineUpCommand 欄位

定義

命令,會沿著其 ScrollBar 值會減少的垂直方向少量捲動 Track

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=" ^" />

備註

此命令會 ValueTrack 藉由 屬性的值 SmallChange 減少 中的 ScrollBar

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

當您實 ScrollBar 作 做為 控制項的一 ScrollViewer 部分時,會 ScrollViewer 執行此命令。

XAML 文字使用方式

<object屬性="ScrollBar.LineUpCommand"/>

適用於

另請參閱