共用方式為


TabItem.OnSelected(RoutedEventArgs) 方法

定義

呼叫以指示 IsSelected 屬性已變更為 true

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

參數

e
RoutedEventArgs

Selected 事件的事件資料。

適用於