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
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.