ScrollBar.LineLeftCommand 字段


按照其 ScrollBar 的减小值的水平方向少量滚动 Track 的命令。The command that scrolls a ScrollBar by a small amount in the horizontal direction of decreasing value of its Track.

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



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

<RepeatButton Grid.Column="0" 
              Style="{DynamicResource Scrollbar_LineButton}" 									
              Command="ScrollBar.LineLeftCommand" Content=" &lt;" />


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

当用户按下左侧RepeatButton时, 将发生此命令。This command occurs when the user presses the left RepeatButton.

当将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.LineLeftCommand"/>< object property="ScrollBar.LineLeftCommand"/>