ContextRequestedEventArgs ContextRequestedEventArgs ContextRequestedEventArgs ContextRequestedEventArgs Class

Definition

Provides event data for the ContextRequested event.

public : sealed class ContextRequestedEventArgs : RoutedEventArgs, IContextRequestedEventArgspublic sealed class ContextRequestedEventArgs : RoutedEventArgs, IContextRequestedEventArgsPublic NotInheritable Class ContextRequestedEventArgs Inherits RoutedEventArgs Implements IContextRequestedEventArgs// This API is not available in Javascript.
Inheritance
ContextRequestedEventArgsContextRequestedEventArgsContextRequestedEventArgsContextRequestedEventArgs
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Inherited Members

Inherited properties

Constructors

ContextRequestedEventArgs() ContextRequestedEventArgs() ContextRequestedEventArgs() ContextRequestedEventArgs()

Initializes a new instance of the ContextRequestedEventArgs class.

public : ContextRequestedEventArgs()public ContextRequestedEventArgs()Public Sub New()// This API is not available in Javascript.

Properties

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; }public bool Handled { get; set; }Public ReadWrite Property Handled As bool// This API is not available in Javascript.
Value
PlatForm::Boolean bool 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.

See Also

Methods

TryGetPosition(UIElement, Point) TryGetPosition(UIElement, Point) TryGetPosition(UIElement, Point) TryGetPosition(UIElement, Point)

Gets the x- and y-coordinates of the pointer position, optionally evaluated against a coordinate origin of a supplied UIElement.

public : PlatForm::Boolean TryGetPosition(UIElement relativeTo, Point point)public bool TryGetPosition(UIElement relativeTo, Point point)Public Function TryGetPosition(relativeTo As UIElement, point As Point) As bool// This API is not available in Javascript.
Parameters
relativeTo
UIElement UIElement UIElement UIElement

Any UIElement -derived object that is connected to the same object tree. To specify the object relative to the overall coordinate system, use a relativeTo value of null.

point
Point Point Point Point

A Point that represents the current x- and y-coordinates of the mouse pointer position. If null was passed as relativeTo, this coordinate is for the overall window. If a relativeTo value other than null was passed, this coordinate is relative to the object referenced by relativeTo.

Returns
PlatForm::Boolean bool bool bool

true if the context request was initiated by a pointer device; otherwise, false.

See Also