UIElement3D.OnIsKeyboardFocusedChanged 方法

定义

当针对此元素引发未处理的 IsKeyboardFocusedChanged 事件时调用。 实现此方法可为此事件添加类处理。

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

参数

注解

当依赖属性的值发生更改时,将调用此 IsKeyboardFocused 虚拟方法。 首先调用虚拟方法,可以根据需要操作事件数据。 然后,使用 IsKeyboardFocusedChanged 同一事件数据实例引发该事件。 请注意,该 IsKeyboardFocusedChanged 事件不是路由事件。 因此,不能在类处理程序中将其标记为已处理。

此方法没有默认实现。 由于继承中的中间类可能实现此方法,因此建议在实现中调用基实现。 可以在特殊处理之前或之后调用 base,具体取决于你的要求。

OnIsKeyboardFocusedChanged在 .NET Framework 版本 3.5 中引入。 有关详细信息,请参见版本和依赖关系

适用于