WebUICommandBar.MenuOpened Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.