ContextMenuEventArgs class

Applies to Windows and Windows Phone

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

Inheritance

Object
  RoutedEventArgs
    ContextMenuEventArgs

Syntax


public sealed class ContextMenuEventArgs : RoutedEventArgs

Attributes

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

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-onlyGets the pixel offset of the text cursor horizontal position.

CursorTop

Read-onlyGets the pixel offset of the text cursor vertical position.

Handled

Read/writeGets 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-onlyGets a reference to the object that raised the event. (Inherited from RoutedEventArgs)

 

Requirements

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

See also

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

 

 

Show:
© 2014 Microsoft. All rights reserved.