PropertyChangedEventManager.AddListener Method (INotifyPropertyChanged, IWeakEventListener, String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds the specified listener to the list of listeners on the specified source.

Namespace:   System.ComponentModel
Assembly:  WindowsBase (in WindowsBase.dll)

public static void AddListener(
	INotifyPropertyChanged source,
	IWeakEventListener listener,
	string propertyName
)

Parameters

source
Type: System.ComponentModel.INotifyPropertyChanged

The object with the event.

listener
Type: System.Windows.IWeakEventListener

The object to add as a listener.

propertyName
Type: System.String

The name of the property that exists on source upon which to listen for changes. Set to Empty to indicate "any property".

.NET Framework
Available since 3.0
Return to top
Show: