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
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา