共用方式為


TreeViewItem.OnUnselected(RoutedEventArgs) 方法

定義

Unselected 屬性從 true 變更為 false 時,就會引發 IsSelected 路由事件。

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

參數

e
RoutedEventArgs

事件引數。

備註

控制項會呼叫 RaiseEvent 來引發 Unselected 事件。 如需詳細資訊,請參閱路由事件概觀

給繼承者的注意事項

OnUnselected(RoutedEventArgs) 衍生類別中覆寫時,請務必呼叫基類的 OnUnselected(RoutedEventArgs) 方法,讓已註冊的委派接收事件。

適用於