PropertyChangedEventManager::AddListener Method (INotifyPropertyChanged^, IWeakEventListener^, String^)
.NET Framework (current version)
Adds the specified listener to the list of listeners on the specified source.
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
Available since 3.0
Show: