ContentElement.PreviewLostKeyboardFocus Olay
Tanım
Klavye artık bu öğeye odaklanmadıysa oluşur.Occurs when the keyboard is no longer focused on this element.
public:
virtual event System::Windows::Input::KeyboardFocusChangedEventHandler ^ PreviewLostKeyboardFocus;
public event System.Windows.Input.KeyboardFocusChangedEventHandler PreviewLostKeyboardFocus;
member this.PreviewLostKeyboardFocus : System.Windows.Input.KeyboardFocusChangedEventHandler
Public Custom Event PreviewLostKeyboardFocus As KeyboardFocusChangedEventHandler
Olay Türü
Uygulamalar
Açıklamalar
Bu olay tünel yönlendirmeyi kullandığından, odağı kaybetmiş olan öğe, olay işleyicisinin gerçekten eklendiği öğe yerine bir alt öğe olabilir.Because this event uses tunneling routing, the element that lost focus might be a child element instead of the element where the event handler is actually attached. SourceOdağı kaybolan gerçek öğeyi öğrenmek için olay verilerini inceleyin.Check the Source in the event data to determine the actual element that lost focus.
Bu olay Keyboard.PreviewLostKeyboardFocus , PreviewLostKeyboardFocus ContentElement bir temel öğe olarak Devralındığı zaman sınıf üye listesinin bir parçası olan bu sınıf için ekli olay için bir diğer ad oluşturur.This event creates an alias for the Keyboard.PreviewLostKeyboardFocus attached event for this class, so that PreviewLostKeyboardFocus is part of the class members list when ContentElement is inherited as a base element. Olaya eklenen olay işleyicileri, PreviewLostKeyboardFocus temel alınan Keyboard.PreviewLostKeyboardFocus ekli olaya iliştirilir ve aynı olay veri örneğini alır.Event handlers that are attached to the PreviewLostKeyboardFocus event are attached to the underlying Keyboard.PreviewLostKeyboardFocus attached event and receive the same event data instance.
Yönlendirilmiş Olay BilgisiRouted Event Information
Tanımlayıcı alanıIdentifier field | PreviewLostKeyboardFocusEvent |
Yönlendirme stratejisiRouting strategy | TünelTunneling |
TemsilciDelegate | KeyboardFocusChangedEventHandler |
Karşılık gelen kabarcıklanma olayı LostKeyboardFocus .The corresponding bubbling event is LostKeyboardFocus.
OnPreviewLostKeyboardFocusTüretilmiş sınıflarda bu olay için sınıf işlemeyi uygulamak üzere geçersiz kılın.Override OnPreviewLostKeyboardFocus to implement class handling for this event in derived classes.