WebUICommandBar.MenuClosed Event

Definition

Deprecated. Occurs when a menu is closed.

public:
 virtual event MenuClosedEventHandler ^ MenuClosed;
// Register
event_token MenuClosed(MenuClosedEventHandler const& handler) const;

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

// Revoke with event_revoker
WebUICommandBar::MenuClosed_revoker MenuClosed(auto_revoke_t, MenuClosedEventHandler const& handler) const;
public event MenuClosedEventHandler MenuClosed;
function onMenuClosed(eventArgs) { /* Your code */ }
webUICommandBar.addEventListener("menuclosed", onMenuClosed);
webUICommandBar.removeEventListener("menuclosed", onMenuClosed);
- or -
webUICommandBar.onmenuclosed = onMenuClosed;
Public Custom Event MenuClosed As MenuClosedEventHandler 

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