Keyboard.AddLostKeyboardFocusHandler Method (DependencyObject, KeyboardFocusChangedEventHandler)
.NET Framework (current version)
![]() |
---|
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience. |
Adds a handler for the Keyboard.LostKeyboardFocus attached event.
Assembly: PresentationCore (in PresentationCore.dll)
public static void AddLostKeyboardFocusHandler( DependencyObject element, KeyboardFocusChangedEventHandler handler )
Parameters
- element
-
Type:
System.Windows.DependencyObject
The UIElement or ContentElement that listens to this event.
- handler
-
Type:
System.Windows.Input.KeyboardFocusChangedEventHandler
The event handler to be added.
This method provides attached property accessors for code access and XAML attribute processing of the Keyboard.LostKeyboardFocus attached event.
.NET Framework
Available since 3.0
Available since 3.0
Show: