共用方式為


AppBar.Closed 事件

定義

AppBar 從可見變更為隱藏時發生。

// 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"/>

事件類型

備註

Closed 事件會在轉換動畫完成之後發生。 您可以處理 Closed 事件來回應要關閉的應用程式行。

適用於

另請參閱