TextBlock.ContextMenuOpening Ereignis

Definition

Tritt auf, wenn das System eine Interaktion verarbeitet, die ein Kontextmenü anzeigt.

public:
 virtual 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
TextBlock::ContextMenuOpening_revoker ContextMenuOpening(auto_revoke_t, ContextMenuOpeningEventHandler const& handler) const;
public event ContextMenuOpeningEventHandler ContextMenuOpening;
function onContextMenuOpening(eventArgs) { /* Your code */ }
textBlock.addEventListener("contextmenuopening", onContextMenuOpening);
textBlock.removeEventListener("contextmenuopening", onContextMenuOpening);
- or -
textBlock.oncontextmenuopening = onContextMenuOpening;
Public Custom Event ContextMenuOpening As ContextMenuOpeningEventHandler 
<TextBlock ContextMenuOpening="eventhandler" />

Ereignistyp

Gilt für: