ScrollBar.ScrollToTopCommand 字段

定义

ScrollBar 滚动到垂直 MaximumScrollBar 值的命令。The command that scrolls a ScrollBar to the Maximum value for a vertical ScrollBar.

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

字段值

注解

对于垂直ScrollBar, 此移动在用户按下 CTRL + HOME 键时发生。For a vertical ScrollBar, this movement occurs when the user presses the CTRL+HOME keys.

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

适用于