共用方式為


ToggleButton.OnChecked(RoutedEventArgs) 方法

定義

ToggleButton 引發 Checked 事件時呼叫。

protected:
 virtual void OnChecked(System::Windows::RoutedEventArgs ^ e);
protected virtual void OnChecked (System.Windows.RoutedEventArgs e);
abstract member OnChecked : System.Windows.RoutedEventArgs -> unit
override this.OnChecked : System.Windows.RoutedEventArgs -> unit
Protected Overridable Sub OnChecked (e As RoutedEventArgs)

參數

e
RoutedEventArgs

Checked 事件的事件資料。

適用於