Class PropertyChangedEventManager
Provides a WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the PropertyChanged event.
Inheritance
Inherited Members
Namespace: System.ComponentModel
Assembly: Telerik.Windows.Controls.dll
Syntax
public class PropertyChangedEventManager : WeakEventManager<INotifyPropertyChanged>
Methods
AddListener(INotifyPropertyChanged, IWeakEventListener, String)
Adds the specified listener to the list of listeners on the specified source.
Declaration
public static void AddListener(INotifyPropertyChanged source, IWeakEventListener listener, string propertyName)
Parameters
System.ComponentModel.INotifyPropertyChanged
source
The object with the event. |
IWeakEventListener
listener
The object to add as a listener. |
System.String
propertyName
The name of the property that exists on source upon which to listen for changes. Set to string.Empty to indicate "any property". |
RemoveListener(INotifyPropertyChanged, IWeakEventListener, String)
Removes the specified listener from the list of listeners on the provided source.
Declaration
public static void RemoveListener(INotifyPropertyChanged source, IWeakEventListener listener, string propertyName)
Parameters
System.ComponentModel.INotifyPropertyChanged
source
The object to remove the listener from. |
IWeakEventListener
listener
The listener to remove. |
System.String
propertyName
The name of the property that exists on source upon which to stop listening for changes. Set to string.Empty to indicate "any property". |
StartListening(Object)
Begins listening for the PropertyChanged event on the provided source.
Declaration
protected override void StartListening(object source)
Parameters
System.Object
source
The object on which to start listening for PropertyChanged. |
Overrides
StopListening(Object)
Stops listening for the PropertyChanged event on the provided source.
Declaration
protected override void StopListening(object source)
Parameters
System.Object
source
The source object on which to stop listening for PropertyChanged. |