ContextMenuEventArgs ContextMenuEventArgs ContextMenuEventArgs ContextMenuEventArgs Class

Definition

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

public : sealed class ContextMenuEventArgs : RoutedEventArgs, IContextMenuEventArgs
struct winrt::Windows::UI::Xaml::Controls::ContextMenuEventArgs : RoutedEventArgs, IContextMenuEventArgs
public sealed class ContextMenuEventArgs : RoutedEventArgs, IContextMenuEventArgs
Public NotInheritable Class ContextMenuEventArgs Inherits RoutedEventArgs Implements IContextMenuEventArgs
Inheritance
ContextMenuEventArgsContextMenuEventArgsContextMenuEventArgsContextMenuEventArgs
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

CursorLeft CursorLeft CursorLeft CursorLeft

Gets the pixel offset of the text cursor horizontal position.

public : double CursorLeft { get; }
double CursorLeft();
public double CursorLeft { get; }
Public ReadOnly Property CursorLeft As double
Value
double double

A value in pixels.

CursorTop CursorTop CursorTop CursorTop

Gets the pixel offset of the text cursor vertical position.

public : double CursorTop { get; }
double CursorTop();
public double CursorTop { get; }
Public ReadOnly Property CursorTop As double
Value
double double

A value in pixels.

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.

public : Platform::Boolean Handled { get; set; }
bool Handled(); void Handled(bool handled);
public bool Handled { get; set; }
Public ReadWrite Property Handled As bool
Value
bool bool

True to mark the routed event handled. False to leave the routed event unhandled, which permits the event to potentially route further and be acted on by other handlers. The default is false.

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