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

注解

此命令按 Value 属性的值Track减少 中 ScrollBar 的 。SmallChange

当用户按下向上键时,将发生此命令。

作为控件的一ScrollViewer部分实现 ScrollBar 时,将ScrollViewer执行此命令。

XAML 文本用法

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

适用于

另请参阅