weakeventmanager

Using WeakEventManager in Windows.Forms application

When using weak events as described here http://wekempf.spaces.live.com/blog/cns!D18C3EC06EA971CF!373.entry in a Windows.Forms application the WeakEventManager leaks WeakReference objects. I think this is because without a WPF message loop the CleanupOperation is never executed, although ScheduleCleanup is called in WeakEventManager.Pro...

Example implementation of weak events using .NET's WeakEventManager

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 example, I can't figure out how to call ProtectedAddListener from my static AddListener function in my custom manager. ...

Weak Event Manager stops listening

Hey all... I was building a quick mock-up of a WeakEventManager/Listener using buttons but after two clicks, the StopListening event is getting fired and I'm not quite sure why. Essentially, the Manager is listening for Click events. My listener gets instantiated in the Window1_Initialized event Application.Current.Properties.Add("Eve...