LostFocusEventManager.AddListener 方法

定义

将提供的侦听器添加到提供的源上的侦听器列表中。

public:
 static void AddListener(System::Windows::DependencyObject ^ source, System::Windows::IWeakEventListener ^ listener);
public static void AddListener (System.Windows.DependencyObject source, System.Windows.IWeakEventListener listener);
static member AddListener : System.Windows.DependencyObject * System.Windows.IWeakEventListener -> unit
Public Shared Sub AddListener (source As DependencyObject, listener As IWeakEventListener)

参数

source
DependencyObject

带事件的对象。

listener
IWeakEventListener

要作为侦听器添加的对象。

适用于

另请参阅