ToggleButton.Checked 事件

定义

选中 ToggleButton 时触发。

// 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"/>

事件类型

适用于