Class
PropertyChangedEventManager

Provides a WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the PropertyChanged event.

Definition

Methods

AddListener(INotifyPropertyChanged, IWeakEventListener, string)

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

Declaration

cs-api-definition
public static void AddListener(INotifyPropertyChanged source, IWeakEventListener listener, string propertyName)

Parameters

source

INotifyPropertyChanged

The object with the event.

listener

IWeakEventListener

The object to add as a listener.

propertyName

string

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

cs-api-definition
public static void RemoveListener(INotifyPropertyChanged source, IWeakEventListener listener, string propertyName)

Parameters

source

INotifyPropertyChanged

The object to remove the listener from.

listener

IWeakEventListener

The listener to remove.

propertyName

string

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

cs-api-definition
protected override void StartListening(object source)

Parameters

source

object

The object on which to start listening for PropertyChanged.

Overrides WeakEventManager<INotifyPropertyChanged>.StartListening(object)

StopListening(object)

Stops listening for the PropertyChanged event on the provided source.

Declaration

cs-api-definition
protected override void StopListening(object source)

Parameters

source

object

The source object on which to stop listening for PropertyChanged.

Overrides WeakEventManager<INotifyPropertyChanged>.StopListening(object)