ContextMenuEventArgs class
TOC
Collapse the table of content
Expand the table of content

ContextMenuEventArgs class

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

Inheritance

Object
  RoutedEventArgs
    ContextMenuEventArgs

Syntax


Public NotInheritable Class ContextMenuEventArgs
    Inherits RoutedEventArgs

Members

The ContextMenuEventArgs class has these types of members:

Methods

The ContextMenuEventArgs class inherits methods from the Object class.

Properties

The ContextMenuEventArgs class has these properties.

PropertyAccess typeDescription

CursorLeft

Read-only

Gets the pixel offset of the text cursor horizontal position.

CursorTop

Read-only

Gets the pixel offset of the text cursor vertical position.

Handled

Read/write

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

Read-only

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)

 

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

See also

Object
RoutedEventArgs
PasswordBox.ContextMenuOpening
RichEditBox.ContextMenuOpening
RichTextBlock.ContextMenuOpening
TextBlock.ContextMenuOpening
TextBox.ContextMenuOpening

 

 

Show:
© 2016 Microsoft