TextBox.ContextMenuOpening TextBox.ContextMenuOpening TextBox.ContextMenuOpening TextBox.ContextMenuOpening Event

Definition

Occurs when the system processes an interaction that displays a context menu.

public : event ContextMenuOpeningEventHandler ContextMenuOpening
// Register
event_token ContextMenuOpening(ContextMenuOpeningEventHandler const& handler) const;

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

// Revoke with event_revoker
ContextMenuOpening_revoker ContextMenuOpening(auto_revoke_t, ContextMenuOpeningEventHandler const& handler) const;
public event ContextMenuOpeningEventHandler ContextMenuOpening
Public Event ContextMenuOpening As ContextMenuOpeningEventHandler
<TextBox ContextMenuOpening="eventhandler" />

Remarks

To override the context menu, you can handle the ContextMenuOpening event and replace the default menu with a custom menu. For an example of this, see Scenario 2 of the ContextMenu sample. For design info, see Guidelines for context menus.

See also