This documentation is archived and is not being maintained.
PropertyChangedEventManager Class
Visual Studio 2010
Provides a WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the PropertyChanged event.
System::Object
System.Windows.Threading::DispatcherObject
System.Windows::WeakEventManager
System.ComponentModel::PropertyChangedEventManager
System.Windows.Threading::DispatcherObject
System.Windows::WeakEventManager
System.ComponentModel::PropertyChangedEventManager
Assembly: WindowsBase (in WindowsBase.dll)
The PropertyChangedEventManager type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Dispatcher | Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.) |
![]() | Item | Gets or sets the data being stored for the specified source. (Inherited from WeakEventManager.) |
![]() | ReadLock | Establishes a read-lock on the underlying data table, and returns an IDisposable. (Inherited from WeakEventManager.) |
![]() | WriteLock | Establishes a write-lock on the underlying data table, and returns an IDisposable. (Inherited from WeakEventManager.) |
| Name | Description | |
|---|---|---|
![]() ![]() | AddListener | Adds the specified listener to the list of listeners on the specified source. |
![]() | CheckAccess | Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.) |
![]() | DeliverEvent | Delivers the event being managed to each listener. (Inherited from WeakEventManager.) |
![]() | DeliverEventToList | Delivers the event being managed to each listener in the provided list. (Inherited from WeakEventManager.) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ProtectedAddListener | Adds the provided listener to the provided source for the event being managed. (Inherited from WeakEventManager.) |
![]() | ProtectedRemoveListener | Removes a previously added listener from the provided source. (Inherited from WeakEventManager.) |
![]() | Purge | Removes listeners that are no longer active from the data for the provided source. (Overrides WeakEventManager::Purge(Object, Object, Boolean).) |
![]() | Remove | Removes all listeners for the specified source. (Inherited from WeakEventManager.) |
![]() ![]() | RemoveListener | Removes the specified listener from the list of listeners on the provided source. |
![]() | ScheduleCleanup | Requests that a purge of unused entries in the underlying listener list be performed on a lower priority thread. (Inherited from WeakEventManager.) |
![]() | StartListening | Begins listening for the PropertyChanged event on the provided source. (Overrides WeakEventManager::StartListening(Object).) |
![]() | StopListening | Stops listening for the PropertyChanged event on the provided source. (Overrides WeakEventManager::StopListening(Object).) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | VerifyAccess | Enforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.) |
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
