Table of Contents

Class WeakEventHandler<T, E>

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

Provides methods for creating WeakEvent handlers.

public class WeakEventHandler<T, E> : IWeakEventHandler<E> where T : class where E : EventArgs

Type Parameters

T

The type of the event source.

E

The EventArgs.

Inheritance
WeakEventHandler<T, E>
Implements

Constructors

WeakEventHandler(EventHandler<E>, UnregisterCallback<E>)

Constructs a new WeakEventHandler.

Properties

Handler

Get an event handler.

Methods

Invoke(object, E)

Invokes the event handler if the source is still alive.

Operators

implicit operator EventHandler<E>(WeakEventHandler<T, E>)