Keyboard.AddPreviewKeyboardInputProviderAcquireFocusHandler 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为 PreviewKeyboardInputProviderAcquireFocus 附加事件添加处理程序。
public:
static void AddPreviewKeyboardInputProviderAcquireFocusHandler(System::Windows::DependencyObject ^ element, System::Windows::Input::KeyboardInputProviderAcquireFocusEventHandler ^ handler);
public static void AddPreviewKeyboardInputProviderAcquireFocusHandler (System.Windows.DependencyObject element, System.Windows.Input.KeyboardInputProviderAcquireFocusEventHandler handler);
static member AddPreviewKeyboardInputProviderAcquireFocusHandler : System.Windows.DependencyObject * System.Windows.Input.KeyboardInputProviderAcquireFocusEventHandler -> unit
Public Shared Sub AddPreviewKeyboardInputProviderAcquireFocusHandler (element As DependencyObject, handler As KeyboardInputProviderAcquireFocusEventHandler)
参数
- element
- DependencyObject
侦听此事件的 UIElement 或 ContentElement。
要添加的事件处理程序。
注解
此方法提供附加属性访问器,用于代码访问和附加事件的 XAML 属性处理 Keyboard.PreviewKeyboardInputProviderAcquireFocus 。