UIElement.ContextRequested UIElement.ContextRequested UIElement.ContextRequested UIElement.ContextRequested Event

Definition

Occurs when the user has completed a context input gesture, such as a right-click.

public : event TypedEventHandler<UIElement, ContextRequestedEventArgs> ContextRequested
// Register
event_token ContextRequested(TypedEventHandler<UIElement, ContextRequestedEventArgs> const& handler) const;

// Revoke with event_token
void ContextRequested(event_token const& cookie) const;

// Revoke with event_revoker
ContextRequested_revoker ContextRequested(auto_revoke_t, TypedEventHandler<UIElement, ContextRequestedEventArgs> const& handler) const;
public event TypedEventHandler<UIElement, ContextRequestedEventArgs> ContextRequested
Public Event ContextRequested As TypedEventHandler (Of UIElement, ContextRequestedEventArgs)
<uiElement ContextRequested="eventhandler"/>

Additional features and requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

If the ContextFlyout property is null, this event is marked as handled.

ContextRequested is a routed event. For more info on the routed event concept, see Events and routed events overview.

See also