PropertyChangedEventManager PropertyChangedEventManager PropertyChangedEventManager PropertyChangedEventManager Class

Definition

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

public ref class PropertyChangedEventManager : System::Windows::WeakEventManager
public class PropertyChangedEventManager : System.Windows.WeakEventManager
type PropertyChangedEventManager = class
    inherit WeakEventManager
Public Class PropertyChangedEventManager
Inherits WeakEventManager
Inheritance
PropertyChangedEventManagerPropertyChangedEventManagerPropertyChangedEventManagerPropertyChangedEventManager

Remarks

In order to be listeners in this pattern, your listener objects must implement IWeakEventListener. You do not need to implement IWeakEventListener on the class that is the source of the events.

Methods

AddHandler(INotifyPropertyChanged, EventHandler<PropertyChangedEventArgs>, String) AddHandler(INotifyPropertyChanged, EventHandler<PropertyChangedEventArgs>, String) AddHandler(INotifyPropertyChanged, EventHandler<PropertyChangedEventArgs>, String) AddHandler(INotifyPropertyChanged, EventHandler<PropertyChangedEventArgs>, String)

Adds the specified event handler, which is called when specified source raises the PropertyChanged event for the specified property.

AddListener(INotifyPropertyChanged, IWeakEventListener, String) AddListener(INotifyPropertyChanged, IWeakEventListener, String) AddListener(INotifyPropertyChanged, IWeakEventListener, String) AddListener(INotifyPropertyChanged, IWeakEventListener, String)

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

CheckAccess() CheckAccess() CheckAccess() CheckAccess()

Determines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
DeliverEvent(Object, EventArgs) DeliverEvent(Object, EventArgs) DeliverEvent(Object, EventArgs) DeliverEvent(Object, EventArgs)

Delivers the event being managed to each listener.

(Inherited from WeakEventManager)
DeliverEventToList(Object, EventArgs, WeakEventManager+ListenerList) DeliverEventToList(Object, EventArgs, WeakEventManager+ListenerList) DeliverEventToList(Object, EventArgs, WeakEventManager+ListenerList) DeliverEventToList(Object, EventArgs, WeakEventManager+ListenerList)

Delivers the event being managed to each listener in the provided list.

(Inherited from WeakEventManager)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
NewListenerList() NewListenerList() NewListenerList() NewListenerList()

Returns a new object to contain listeners to the PropertyChanged event.

ProtectedAddHandler(Object, Delegate) ProtectedAddHandler(Object, Delegate) ProtectedAddHandler(Object, Delegate) ProtectedAddHandler(Object, Delegate)

Adds the specified delegate as an event handler of the specified source.

(Inherited from WeakEventManager)
ProtectedAddListener(Object, IWeakEventListener) ProtectedAddListener(Object, IWeakEventListener) ProtectedAddListener(Object, IWeakEventListener) ProtectedAddListener(Object, IWeakEventListener)

Adds the provided listener to the provided source for the event being managed.

(Inherited from WeakEventManager)
ProtectedRemoveHandler(Object, Delegate) ProtectedRemoveHandler(Object, Delegate) ProtectedRemoveHandler(Object, Delegate) ProtectedRemoveHandler(Object, Delegate)

Removes the previously added handler from the specified source.

(Inherited from WeakEventManager)
ProtectedRemoveListener(Object, IWeakEventListener) ProtectedRemoveListener(Object, IWeakEventListener) ProtectedRemoveListener(Object, IWeakEventListener) ProtectedRemoveListener(Object, IWeakEventListener)

Removes a previously added listener from the provided source.

(Inherited from WeakEventManager)
Purge(Object, Object, Boolean) Purge(Object, Object, Boolean) Purge(Object, Object, Boolean) Purge(Object, Object, Boolean)

Removes listeners that are no longer active from the data for the provided source.

Remove(Object) Remove(Object) Remove(Object) Remove(Object)

Removes all listeners for the specified source.

(Inherited from WeakEventManager)
RemoveHandler(INotifyPropertyChanged, EventHandler<PropertyChangedEventArgs>, String) RemoveHandler(INotifyPropertyChanged, EventHandler<PropertyChangedEventArgs>, String) RemoveHandler(INotifyPropertyChanged, EventHandler<PropertyChangedEventArgs>, String) RemoveHandler(INotifyPropertyChanged, EventHandler<PropertyChangedEventArgs>, String)

Removes the specified event handler from the specified source.

RemoveListener(INotifyPropertyChanged, IWeakEventListener, String) RemoveListener(INotifyPropertyChanged, IWeakEventListener, String) RemoveListener(INotifyPropertyChanged, IWeakEventListener, String) RemoveListener(INotifyPropertyChanged, IWeakEventListener, String)

Removes the specified listener from the list of listeners on the provided source.

ScheduleCleanup() ScheduleCleanup() ScheduleCleanup() ScheduleCleanup()

Requests that a purge of unused entries in the underlying listener list be performed on a lower priority thread.

(Inherited from WeakEventManager)
StartListening(Object) StartListening(Object) StartListening(Object) StartListening(Object)

Begins listening for the PropertyChanged event on the provided source.

StopListening(Object) StopListening(Object) StopListening(Object) StopListening(Object)

Stops listening for the PropertyChanged event on the provided source.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
VerifyAccess() VerifyAccess() VerifyAccess() VerifyAccess()

Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

Properties

Dispatcher Dispatcher Dispatcher Dispatcher

Gets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
Item[Object] Item[Object] Item[Object] Item[Object]

Gets or sets the data being stored for the specified source.

(Inherited from WeakEventManager)
ReadLock ReadLock ReadLock ReadLock

Establishes a read-lock on the underlying data table, and returns an IDisposable.

(Inherited from WeakEventManager)
WriteLock WriteLock WriteLock WriteLock

Establishes a write-lock on the underlying data table, and returns an IDisposable.

(Inherited from WeakEventManager)

Applies to

See Also