Skip to main content

WeakEvent<TSender, TEventArgs> Class

Manages subscriptions to events using weak listeners.

Definition​

Namespace: Avalonia.Utilities
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public sealed class WeakEvent<TSender, TEventArgs> : WeakEvent
where TSender : class

View Source
InheritanceObject → WeakEvent → WeakEvent(TSender, TEventArgs)

Type Parameters​

Methods​

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
Subscribe(TSender, IWeakEventSubscriber(TEventArgs)) 
ToString()Returns a string that represents the current object.
(Inherited from Object)
Unsubscribe(TSender, IWeakEventSubscriber(TEventArgs)) 

See Also​

Reference​

Avalonia.Utilities Namespace