ContentDialog.CloseButtonClick Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs after the close button has been tapped.
// Register
event_token CloseButtonClick(TypedEventHandler<ContentDialog, ContentDialogButtonClickEventArgs const&> const& handler) const;
// Revoke with event_token
void CloseButtonClick(event_token const* cookie) const;
// Revoke with event_revoker
ContentDialog::CloseButtonClick_revoker CloseButtonClick(auto_revoke_t, TypedEventHandler<ContentDialog, ContentDialogButtonClickEventArgs const&> const& handler) const;
public event TypedEventHandler<ContentDialog,ContentDialogButtonClickEventArgs> CloseButtonClick;
function onCloseButtonClick(eventArgs) { /* Your code */ }
contentDialog.addEventListener("closebuttonclick", onCloseButtonClick);
contentDialog.removeEventListener("closebuttonclick", onCloseButtonClick);
- or -
contentDialog.onclosebuttonclick = onCloseButtonClick;
Public Custom Event CloseButtonClick As TypedEventHandler(Of ContentDialog, ContentDialogButtonClickEventArgs)
<ContentDialog CloseButtonClick="eventhandler"/>