C# Class Gu.Wpf.ValidationScope.ErrorsChangedEventManager

Manager for the INotifyErrorsChanged.ErrorsChanged event. Inspired by: http://referencesource.microsoft.com/#WindowsBase/Base/System/Collections/Specialized/CollectionChangedEventManager.cs,7537b339109a7418
Inheritance: System.Windows.WeakEventManager
显示文件 Open project: JohanLarsson/Gu.Wpf.ValidationScope Class Usage Examples

Private Properties

Property Type Description
ErrorsChangedEventManager System

Public Methods

Method Description
AddHandler ( INotifyErrorsChanged source, EventHandler handler ) : void

Add a handler for the given source's event.

AddListener ( INotifyErrorsChanged source, IWeakEventListener listener ) : void

Add a listener to the given source's event.

RemoveHandler ( INotifyErrorsChanged source, EventHandler handler ) : void

Remove a handler for the given source's event.

RemoveListener ( INotifyErrorsChanged source, IWeakEventListener listener ) : void

Remove a listener to the given source's event.

Protected Methods

Method Description
NewListenerList ( ) : ListenerList
StartListening ( object source ) : void
StopListening ( object source ) : void

Private Methods

Method Description
ErrorsChangedEventManager ( ) : System

Method Details

AddHandler() public static method

Add a handler for the given source's event.
public static AddHandler ( INotifyErrorsChanged source, EventHandler handler ) : void
source INotifyErrorsChanged
handler EventHandler
return void

AddListener() public static method

Add a listener to the given source's event.
public static AddListener ( INotifyErrorsChanged source, IWeakEventListener listener ) : void
source INotifyErrorsChanged
listener IWeakEventListener
return void

NewListenerList() protected method

protected NewListenerList ( ) : ListenerList
return ListenerList

RemoveHandler() public static method

Remove a handler for the given source's event.
public static RemoveHandler ( INotifyErrorsChanged source, EventHandler handler ) : void
source INotifyErrorsChanged
handler EventHandler
return void

RemoveListener() public static method

Remove a listener to the given source's event.
public static RemoveListener ( INotifyErrorsChanged source, IWeakEventListener listener ) : void
source INotifyErrorsChanged
listener IWeakEventListener
return void

StartListening() protected method

protected StartListening ( object source ) : void
source object
return void

StopListening() protected method

protected StopListening ( object source ) : void
source object
return void