AvalonEdit
WeakEventManagerBase<(Of <(<'TManager, TEventSource>)>)> Class
NamespacesICSharpCode.AvalonEdit.UtilsWeakEventManagerBase<(Of <(<'TManager, TEventSource>)>)>
WeakEventManager with AddListener/RemoveListener and CurrentManager implementation. Helps implementing the WeakEventManager pattern with less code.
Declaration Syntax
C#Visual BasicVisual C++
public abstract class WeakEventManagerBase<TManager, TEventSource> : WeakEventManager
where TManager : new(), WeakEventManagerBase<TManager, TEventSource>
where TEventSource : class
Public MustInherit Class WeakEventManagerBase(Of TManager As {New, WeakEventManagerBase(Of TManager, TEventSource)}, TEventSource As Class) _
	Inherits WeakEventManager
generic<typename TManager, typename TEventSource>
where TManager : gcnew(), WeakEventManagerBase<TManager, TEventSource>
where TEventSource : ref class
public ref class WeakEventManagerBase abstract : public WeakEventManager
Generic Template Parameters
TManager
TEventSource
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
WeakEventManagerBase<(Of <(<'TManager, TEventSource>)>)>()()()()
Creates a new WeakEventManagerBase instance.

AddListener(TEventSource, IWeakEventListener)
Adds a weak event listener.

CheckAccess()()()()
Determines whether the calling thread has access to this DispatcherObject.
(Inherited from DispatcherObject.)
CurrentManager
Gets the current manager.

DeliverEvent(Object, EventArgs)
Delivers the event being managed to each listener.
(Inherited from WeakEventManager.)
DeliverEventToList(Object, EventArgs, WeakEventManager..::..ListenerList)
Delivers the event being managed to each listener in the provided list.
(Inherited from WeakEventManager.)
Dispatcher
Gets the Dispatcher this DispatcherObject is associated with.
(Inherited from DispatcherObject.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object 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.)
Item[([( Object])])
Gets or sets the data being stored for the provided source.
(Inherited from WeakEventManager.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ProtectedAddListener(Object, IWeakEventListener)
Adds the provided listener to the provided source for the event being managed.
(Inherited from WeakEventManager.)
ProtectedRemoveListener(Object, IWeakEventListener)
Removes a previously added listener from the provided source.
(Inherited from WeakEventManager.)
Purge(Object, Object, Boolean)
Removes inactive listener entries from the data list for the provided source. Returns true if some entries were actually removed from the list.
(Inherited from WeakEventManager.)
ReadLock
Establishes a read-lock on the underlying data table, and returns an IDisposable.
(Inherited from WeakEventManager.)
Remove(Object)
Removes all listeners for the given source.
(Inherited from WeakEventManager.)
RemoveListener(TEventSource, IWeakEventListener)
Removes a weak event listener.

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)
When overridden in a derived class, starts listening for the event being managed. After StartListening(Object) is first called, the manager should be in the state of calling DeliverEvent(Object, EventArgs) or DeliverEventToList(Object, EventArgs, WeakEventManager..::..ListenerList) whenever the relevant event from the provided source is handled.
(Overrides WeakEventManager.StartListening(Object).)
StartListening(TEventSource)
Attaches the event handler.

StopListening(Object)
When overridden in a derived class, stops listening on the provided source for the event being managed.
(Overrides WeakEventManager.StopListening(Object).)
StopListening(TEventSource)
Detaches the event handler.

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.)
WriteLock
Establishes a write-lock on the underlying data table, and returns an IDisposable.
(Inherited from WeakEventManager.)
Inheritance Hierarchy

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238