Share via


SwipeItem.Invoked Event

Definition

Occurs when user interaction indicates that the command represented by this item should execute.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.SwipeItem.Invoked (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

// Register
event_token Invoked(TypedEventHandler<SwipeItem, SwipeItemInvokedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SwipeItem::Invoked_revoker Invoked(auto_revoke_t, TypedEventHandler<SwipeItem, SwipeItemInvokedEventArgs const&> const& handler) const;
public event TypedEventHandler<SwipeItem,SwipeItemInvokedEventArgs> Invoked;
function onInvoked(eventArgs) { /* Your code */ }
swipeItem.addEventListener("invoked", onInvoked);
swipeItem.removeEventListener("invoked", onInvoked);
- or -
swipeItem.oninvoked = onInvoked;
Public Custom Event Invoked As TypedEventHandler(Of SwipeItem, SwipeItemInvokedEventArgs) 
<SwipeItem Invoked="eventhandler"/>

Event Type

Applies to