Share via


ToggleButton.Checked Event

Definition

Fires when a ToggleButton is checked.

// Register
event_token Checked(RoutedEventHandler const& handler) const;

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

// Revoke with event_revoker
ToggleButton::Checked_revoker Checked(auto_revoke_t, RoutedEventHandler const& handler) const;
public event RoutedEventHandler Checked;
function onChecked(eventArgs) { /* Your code */ }
toggleButton.addEventListener("checked", onChecked);
toggleButton.removeEventListener("checked", onChecked);
- or -
toggleButton.onchecked = onChecked;
Public Custom Event Checked As RoutedEventHandler 
<togglebutton Checked="eventhandler"/>

Event Type

Applies to