This documentation is archived and is not being maintained.

ScrollBar.ScrollHereCommand Field

The command that scrolls a ScrollBar to the point of the mouse click that opened the ContextMenu in the ScrollBar. This field is read-only.

Namespace: System.Windows.Controls.Primitives
Assembly: PresentationFramework (in presentationframework.dll)

public static readonly RoutedCommand ScrollHereCommand
public static final RoutedCommand ScrollHereCommand
public static final var ScrollHereCommand : RoutedCommand
You cannot use fields in XAML.

This command occurs when the user selects Scroll Here from the ContextMenu options. The ContextMenu of the ScrollBar appears when the user pauses the mouse pointer over the ScrollBar and presses the right mouse button. This menu provides options for scrolling the ScrollBar.

This command is for a ScrollBar that is part of a ScrollViewer control, and is executed by the ScrollViewer.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: