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 事件来响应正在关闭的应用栏。

适用于

另请参阅