共用方式為


RibbonCheckBox.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 變更已處理的狀態 Handled

適用於