共用方式為


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 事件資料的 true 屬性設定 Handled 為 ,將事件標示為 所處理。

適用於