Share via


WebUICommandBar.MenuOpened Event

Definition

Deprecated. Occurs when a menu is opened.

public:
 virtual event MenuOpenedEventHandler ^ MenuOpened;
// Register
event_token MenuOpened(MenuOpenedEventHandler const& handler) const;

// Revoke with event_token
void MenuOpened(event_token const* cookie) const;

// Revoke with event_revoker
WebUICommandBar::MenuOpened_revoker MenuOpened(auto_revoke_t, MenuOpenedEventHandler const& handler) const;
public event MenuOpenedEventHandler MenuOpened;
function onMenuOpened(eventArgs) { /* Your code */ }
webUICommandBar.addEventListener("menuopened", onMenuOpened);
webUICommandBar.removeEventListener("menuopened", onMenuOpened);
- or -
webUICommandBar.onmenuopened = onMenuOpened;
Public Custom Event MenuOpened As MenuOpenedEventHandler 

Event Type

Remarks

Use of the Command Bar (also known as "App Bar") UX element is deprecated for UWP apps using JavaScript and no longer supported. If your app still requires it, this functionality is available from the WinJS 4 library.

Applies to