RibbonToggleButton.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

事件数据。

注解

此方法替代默认行为,并在此控件获得键盘焦点时启用键盘焦点视觉对象。

此实现不会更改事件数据的属性GotKeyboardFocus) (RoutedEventArgs.Handled处理状态。

适用于