AdornerPanel.OnPreviewGotKeyboardFocus 方法

当某个未处理的 Keyboard.PreviewGotKeyboardFocus 附加事件在其路由中到达派生自该类的某个元素时调用。

命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Protected Overrides Sub OnPreviewGotKeyboardFocus ( _
    e As KeyboardFocusChangedEventArgs _
)
protected override void OnPreviewGotKeyboardFocus(
    KeyboardFocusChangedEventArgs e
)
protected:
virtual void OnPreviewGotKeyboardFocus(
    KeyboardFocusChangedEventArgs^ e
) override
abstract OnPreviewGotKeyboardFocus : 
        e:KeyboardFocusChangedEventArgs -> unit 
override OnPreviewGotKeyboardFocus : 
        e:KeyboardFocusChangedEventArgs -> unit 
protected override function OnPreviewGotKeyboardFocus(
    e : KeyboardFocusChangedEventArgs
)

参数

备注

AdornerPanel 重写此预览事件,以便当 IsContentFocusable 为 false 时不接受焦点。

.NET Framework 安全性

请参见

参考

AdornerPanel 类

Microsoft.Windows.Design.Interaction 命名空间

其他资源

装饰器体系结构

功能提供程序和功能连接器