共用方式為


RibbonToggleButton.OnLostKeyboardFocus(KeyboardFocusChangedEventArgs) 方法

定義

當這個控制項失去鍵盤焦點時,提供 LostKeyboardFocus 事件的類別處理,並停用鍵盤焦點視覺化樣式。

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

參數

e
KeyboardFocusChangedEventArgs

事件資料。

備註

這個方法會覆寫預設行為,並在此控制項失去鍵盤焦點時停用鍵盤焦點視覺效果。

這個實作不會變更事件資料) 屬性 (LostKeyboardFocus 已處理的狀態 RoutedEventArgs.Handled

適用於