PasswordBox.ContextMenuOpening Kejadian
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Terjadi ketika sistem memproses interaksi yang menampilkan menu konteks.
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
PasswordBox::ContextMenuOpening_revoker ContextMenuOpening(auto_revoke_t, ContextMenuOpeningEventHandler const& handler) const;
public event ContextMenuOpeningEventHandler ContextMenuOpening;
function onContextMenuOpening(eventArgs) { /* Your code */ }
passwordBox.addEventListener("contextmenuopening", onContextMenuOpening);
passwordBox.removeEventListener("contextmenuopening", onContextMenuOpening);
- or -
passwordBox.oncontextmenuopening = onContextMenuOpening;
Public Custom Event ContextMenuOpening As ContextMenuOpeningEventHandler
<PasswordBox ContextMenuOpening="eventhandler" />