WeakEventListener

The WeakEventListener allows the owner to be garbage collected if its only remaining link is an event handler.

Example

You can find examples of WeakEventListener in our unit tests

Requirements (Windows 10 Device Family)

Device family Universal, 10.0.10586.0 or higher
Namespace Microsoft.Toolkit.Uwp

API