ScrollBar.LineUpCommand 字段

定义

按照其 ScrollBar 的减小值的垂直方向少量滚动 Track 的命令。The command that scrolls a ScrollBar by a small amount in the vertical direction of decreasing value of its 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 

字段值

示例

下面的示例演示如何LineUpCommand在自定义ScrollBar样式模板中指定。The following example shows how to specify the LineUpCommand in a custom ScrollBar style template.

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

注解

此命令Value ScrollBar通过属性SmallChange的值Track减少中的。This command reduces the Value of the Track in the ScrollBar by the value of the SmallChange property.

当用户按向上键时, 将发生此命令。This command occurs when the user presses the UP ARROW key.

当将ScrollBar作为ScrollViewer控件的一部分实现时, 将ScrollViewer执行此命令。When you implement a ScrollBar as part of a ScrollViewer control, the ScrollViewer executes this command.

XAML 文本用法XAML Text Usage

<对象**属性***滚动条。 LineUpCommand* ="``"/>< object property="ScrollBar.LineUpCommand"/>

适用于

另请参阅