RibbonGalleryItem.OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) 方法

定义

提供用于 GotKeyboardFocus 路由事件的类处理。

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

参数

e
KeyboardFocusChangedEventArgs

事件数据。

注解

当此控件获得键盘焦点时, IsHighlighted 此方法将 属性设置为 true

此实现通过将 GotKeyboardFocus 事件数据的 属性设置为 Handled ,将事件标记为 true已处理。

适用于