WebUICommandBarIconButton.ItemInvoked 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 command bar icon button is invoked.
// Register
event_token ItemInvoked(TypedEventHandler<WebUICommandBarIconButton, WebUICommandBarItemInvokedEventArgs const&> const& handler) const;
// Revoke with event_token
void ItemInvoked(event_token const* cookie) const;
// Revoke with event_revoker
WebUICommandBarIconButton::ItemInvoked_revoker ItemInvoked(auto_revoke_t, TypedEventHandler<WebUICommandBarIconButton, WebUICommandBarItemInvokedEventArgs const&> const& handler) const;
public event TypedEventHandler<WebUICommandBarIconButton,WebUICommandBarItemInvokedEventArgs> ItemInvoked;
function onItemInvoked(eventArgs) { /* Your code */ }
webUICommandBarIconButton.addEventListener("iteminvoked", onItemInvoked);
webUICommandBarIconButton.removeEventListener("iteminvoked", onItemInvoked);
- or -
webUICommandBarIconButton.oniteminvoked = onItemInvoked;
Public Custom Event ItemInvoked As TypedEventHandler(Of WebUICommandBarIconButton, WebUICommandBarItemInvokedEventArgs)
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.