Share via


AppBar.Closed Event

Definition

Occurs when the AppBar changes from visible to hidden.

// Register
event_token Closed(EventHandler<IInspectable> const& handler) const;

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

// Revoke with event_revoker
AppBar::Closed_revoker Closed(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public event System.EventHandler<object> Closed;
function onClosed(eventArgs) { /* Your code */ }
appBar.addEventListener("closed", onClosed);
appBar.removeEventListener("closed", onClosed);
- or -
appBar.onclosed = onClosed;
Public Custom Event Closed As EventHandler(Of Object) 
<AppBar Closed="eventhandler"/>

Event Type

Remarks

The Closed event occurs after the transition animation completes. You can respond to the app bar being dismissed by handling the Closed event.

Applies to

See also