共用方式為


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

適用於