ScrollBar.LineDownCommand 字段

定义

按照其 ScrollBar 的增大值的垂直方向少量滚动 Track 的命令。The command that scrolls a ScrollBar by a small amount in the vertical direction of increasing value of its Track.

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

字段值

示例

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

<RepeatButton Grid.Row="2" 
              Style="{DynamicResource Scrollbar_LineButton}" 
              Command="ScrollBar.LineDownCommand" Content=" v" />

注解

此命令Value ScrollBar通过属性SmallChange的值Track在中增加的。This command increases the Value of the Track in the ScrollBar by the value of the SmallChange property.

当用户按下箭头键时, 将发生此命令。This command occurs when the user presses the DOWN 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

< object property="ScrollBar.LineDownCommand"/>< object property="ScrollBar.LineDownCommand"/>

适用于

另请参阅