语言

ContentElement.OnIsKeyboardFocusWithinChanged 方法

定义

在此元素引发事件之前 IsKeyboardFocusWithinChanged 调用。 实现此方法可为此事件添加类处理。

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

参数

注解

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

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

适用于