ToggleButton.Checked Event

Definition

Fires when a ToggleButton is checked.

Equivalent WinUI event: Microsoft.UI.Xaml.Controls.Primitives.ToggleButton.Checked.

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

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

// Revoke with event_revoker
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

RoutedEventHandler

Applies to