ContentDialog.SecondaryButtonClick Kejadian
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Terjadi setelah tombol sekunder diketuk.
// Register
event_token SecondaryButtonClick(TypedEventHandler<ContentDialog, ContentDialogButtonClickEventArgs const&> const& handler) const;
// Revoke with event_token
void SecondaryButtonClick(event_token const* cookie) const;
// Revoke with event_revoker
ContentDialog::SecondaryButtonClick_revoker SecondaryButtonClick(auto_revoke_t, TypedEventHandler<ContentDialog, ContentDialogButtonClickEventArgs const&> const& handler) const;
public event TypedEventHandler<ContentDialog,ContentDialogButtonClickEventArgs> SecondaryButtonClick;
function onSecondaryButtonClick(eventArgs) { /* Your code */ }
contentDialog.addEventListener("secondarybuttonclick", onSecondaryButtonClick);
contentDialog.removeEventListener("secondarybuttonclick", onSecondaryButtonClick);
- or -
contentDialog.onsecondarybuttonclick = onSecondaryButtonClick;
Public Custom Event SecondaryButtonClick As TypedEventHandler(Of ContentDialog, ContentDialogButtonClickEventArgs)
<ContentDialog SecondaryButtonClick="eventhandler"/>