ContextMenuEventArgs ContextMenuEventArgs ContextMenuEventArgs ContextMenuEventArgs Class


Provides event data for the ContextMenuOpening event that exists on several text-related UI elements.

public : sealed class ContextMenuEventArgs : RoutedEventArgs
struct winrt::Windows::UI::Xaml::Controls::ContextMenuEventArgs : RoutedEventArgs
public sealed class ContextMenuEventArgs : RoutedEventArgs
Public NotInheritable Class ContextMenuEventArgs Inherits RoutedEventArgs

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


CursorLeft CursorLeft CursorLeft CursorLeft

Gets the pixel offset of the text cursor horizontal position.

CursorTop CursorTop CursorTop CursorTop

Gets the pixel offset of the text cursor vertical position.

Handled Handled Handled Handled

Gets or sets a value that marks the routed event as handled. A true value for Handled prevents most handlers along the event route from handling the same event again.

OriginalSource OriginalSource OriginalSource OriginalSource

Gets a reference to the object that raised the event. This is often a template part of a control rather than an element that was declared in your app UI.

(Inherited from RoutedEventArgs)

See also