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) 方法,以便注册的委托接收 事件。

适用于