UIElement.LostKeyboardFocus UIElement.LostKeyboardFocus UIElement.LostKeyboardFocus UIElement.LostKeyboardFocus Event


鍵盤不再以此項目為焦點時發生。Occurs when the keyboard is no longer focused on this element,.

 virtual event System::Windows::Input::KeyboardFocusChangedEventHandler ^ LostKeyboardFocus;
public event System.Windows.Input.KeyboardFocusChangedEventHandler LostKeyboardFocus;
member this.LostKeyboardFocus : System.Windows.Input.KeyboardFocusChangedEventHandler 
Public Custom Event LostKeyboardFocus As KeyboardFocusChangedEventHandler 



因為此事件會使用事件反昇的路由,失去焦點的項目可能的子項目,而非項目實際附加事件處理常式。Because this event uses bubbling routing, the element that lost focus might be a child element instead of the element where the event handler is actually attached. 檢查Source事件資料來判斷實際失去焦點的項目中。Check the Source in the event data to determine the actual element that lost focus.

此事件建立的別名Keyboard.LostKeyboardFocus附加事件,此類別中,以便LostKeyboardFocus屬於類別的成員清單時UIElement繼承為基底的項目。This event creates an alias for the Keyboard.LostKeyboardFocus attached event for this class, so that LostKeyboardFocus is part of the class members list when UIElement is inherited as a base element. 附加至事件處理常式LostKeyboardFocus事件會附加至基礎Keyboard.LostKeyboardFocus附加事件,並接收相同的事件資料執行個體。Event handlers that are attached to the LostKeyboardFocus event are attached to the underlying Keyboard.LostKeyboardFocus attached event and receive the same event data instance.

路由事件資訊Routed Event Information

識別項欄位Identifier field LostKeyboardFocusEvent
路由策略Routing strategy 事件反昇Bubbling
Delegate - 委派Delegate KeyboardFocusChangedEventHandler