ContentElement.PreviewGotKeyboardFocus Olay
Tanım
Klavye bu öğeye odaklandığında gerçekleşir.Occurs when the keyboard is focused on this element.
public:
virtual event System::Windows::Input::KeyboardFocusChangedEventHandler ^ PreviewGotKeyboardFocus;
public event System.Windows.Input.KeyboardFocusChangedEventHandler PreviewGotKeyboardFocus;
member this.PreviewGotKeyboardFocus : System.Windows.Input.KeyboardFocusChangedEventHandler
Public Custom Event PreviewGotKeyboardFocus As KeyboardFocusChangedEventHandler
Olay Türü
Uygulamalar
Açıklamalar
Bu olay tünel yönlendirmeyi kullandığından, odağa sahip olan öğe, olay işleyicisinin gerçekten eklendiği öğe yerine bir alt öğe olabilir.Because this event uses tunneling routing, the element that has focus might be a child element instead of the element where the event handler is actually attached. SourceOdağa sahip olan gerçek öğeyi öğrenmek için olay verilerini inceleyin.Check the Source in the event data to determine the actual element that has focus.
Bu olay Keyboard.PreviewGotKeyboardFocus , PreviewGotKeyboardFocus 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.PreviewGotKeyboardFocus attached event for this class, so that PreviewGotKeyboardFocus is part of the class members list when ContentElement is inherited as a base element. Olaya eklenen olay işleyicileri, PreviewGotKeyboardFocus temel alınan Keyboard.PreviewGotKeyboardFocus ekli olaya iliştirilir ve aynı olay veri örneğini alır.Event handlers that are attached to the PreviewGotKeyboardFocus event are attached to the underlying Keyboard.PreviewGotKeyboardFocus attached event and receive the same event data instance.
Yönlendirilmiş Olay BilgisiRouted Event Information
Tanımlayıcı alanıIdentifier field | PreviewGotKeyboardFocusEvent |
Yönlendirme stratejisiRouting strategy | TünelTunneling |
TemsilciDelegate | KeyboardFocusChangedEventHandler |
Karşılık gelen kabarcıklanma olayı GotKeyboardFocus .The corresponding bubbling event is GotKeyboardFocus.
OnPreviewGotKeyboardFocusTüretilmiş sınıflarda bu olay için sınıf işlemeyi uygulamak üzere geçersiz kılın.Override OnPreviewGotKeyboardFocus to implement class handling for this event in derived classes.