ToggleButton.Checked 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.
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"/>