ScrollBar.ScrollHereCommand 欄位

定義

這個命令會將 ScrollBar 捲動至在 ContextMenu 上點選滑鼠打開 ScrollBar 時的點。

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

欄位值

RoutedCommand

備註

當使用者從 ContextMenu 選項中選取 [捲動這裡] 時,就會發生此命令。 ContextMenu ScrollBar 當使用者將滑鼠指標停在 上方 ScrollBar ,然後按滑鼠右鍵時,會出現 的 。 此功能表提供捲動 ScrollBar 的選項。

此命令適用于 ScrollBar 屬於 控制項的 ScrollViewer ,並由 執行 ScrollViewer

XAML 文字使用方式

<object 屬性 =" ScrollBar.ScrollHereCommand"/>

適用於