LostFocusEventManager.AddHandler Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
static void AddHandler(System::Windows::DependencyObject ^ source, EventHandler<System::Windows::RoutedEventArgs ^> ^ handler);
public static void AddHandler (System.Windows.DependencyObject source, EventHandler<System.Windows.RoutedEventArgs> handler);
static member AddHandler : System.Windows.DependencyObject * EventHandler<System.Windows.RoutedEventArgs> -> unit
Public Shared Sub AddHandler (source As DependencyObject, handler As EventHandler(Of RoutedEventArgs))
Parameters
- source
- DependencyObject
The source object that the raises the LostFocus or LostFocus event.
- handler
- EventHandler<RoutedEventArgs>
Exceptions
handler
is null
.
Remarks
Use this method to specify the event handler you want to use to subscribe to the UIElement.LostFocus or ContentElement.LostFocus event. When you use this method, your listener object does not need to implement the IWeakEventListener interface.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.