Share via


TreeView.OnGotFocus(RoutedEventArgs) 方法

定义

引发 GotFocus 路由事件。

protected:
 override void OnGotFocus(System::Windows::RoutedEventArgs ^ e);
protected override void OnGotFocus (System.Windows.RoutedEventArgs e);
override this.OnGotFocus : System.Windows.RoutedEventArgs -> unit
Protected Overrides Sub OnGotFocus (e As RoutedEventArgs)

参数

e
RoutedEventArgs

事件的数据。

继承者说明

在派生类中重写 OnGotFocus(RoutedEventArgs) 时,请务必调用基类的 OnGotFocus(RoutedEventArgs) 方法,以便注册的委托接收 事件。

适用于