ClassPropertyChangedEventManager
Provides a WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the PropertyChanged event.
Definition
Namespace:Telerik.Core
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class PropertyChangedEventManager : WeakEventManager<INotifyPropertyChanged>
Inheritance: objectWeakEventManager<INotifyPropertyChanged>PropertyChangedEventManager
Inherited Members
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
source
The object with the event.
listener
The object to add as a listener.
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
source
The object to remove the listener from.
listener
The listener to remove.
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
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
source
The source object on which to stop listening for PropertyChanged.
Overrides