共用方式為


InfoBar.CloseButtonClick 事件

定義

會在 InfoBar 中按兩下關閉按鈕之後發生。

// Register
event_token CloseButtonClick(TypedEventHandler<InfoBar, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
InfoBar::CloseButtonClick_revoker CloseButtonClick(auto_revoke_t, TypedEventHandler<InfoBar, IInspectable const&> const& handler) const;
public event TypedEventHandler<InfoBar,object> CloseButtonClick;
function onCloseButtonClick(eventArgs) { /* Your code */ }
infoBar.addEventListener("closebuttonclick", onCloseButtonClick);
infoBar.removeEventListener("closebuttonclick", onCloseButtonClick);
- or -
infoBar.onclosebuttonclick = onCloseButtonClick;
Public Custom Event CloseButtonClick As TypedEventHandler(Of InfoBar, Object) 

事件類型

適用於