weak-events Questions

3

Solved

Standard event handler (with operator +=) is one of the memory leakage cause (if it is not unregistered/disposed (with -= operator)). And Microsoft solved it with WeakEventManager and its inheritan...
Serendipity asked 4/4, 2017 at 7:39

2

Solved

I have been looking in to subscribing to an event using a weak event pattern. With the .NET 4.5 framework, we have a slick looking WeakEventManager class. Weakly subscribing to an event is as simpl...
Loux asked 26/10, 2012 at 14:28

1

I don't like off-the-standard pattern, but I was making a quick test on my app, and I bumped against this strange behavior. Consider a normal class exposing an event, here the very common Property...
Schutz asked 3/9, 2014 at 8:47

1

Solved

I'm currently learning WPF and have stumbled upon the concept of weak events but I am really struggling to 'get it'. I have read countless articles on Stackoverflow and looked at code samples but i...
Retardment asked 9/5, 2012 at 19:18

2

Solved

Is there an example implementation of weak events using .NET's WeakEventManager? I'm trying to implement it by following the "Notes to Inheritors" in the documentation, but it is vague. For exampl...
Kidnap asked 19/8, 2010 at 17:43

3

Solved

The WindowsBase DLL defines the IWeakEventListener event with summary: Provides event listening support for classes that expect to receive events through the WeakEvent pattern and a System.Windo...
Alcibiades asked 5/2, 2009 at 16:20

2

Solved

When I use databinding in WPF, my target controls are listening for events on the binding source. For example, I may have a ListView listening for CollectionChanged events on a ObservableCollection...
Teetotaler asked 14/9, 2010 at 19:44
1

© 2022 - 2024 — McMap. All rights reserved.