I have an application that consumes LayoutUpdated-events and need to register them weak. Here is the problem, I got stuck on, during implementation of ...
I have an application that consumes LayoutUpdated-events and need to register them weak. Here is the problem, I got stuck on, during implementation of ...
If one want to use System.Windows.WeakEventManager (assem. WindowsBase) in generic reliable way, how to: Avoid unnecessary registration of static ...
When I do My OnDisplaySettingsChanged never gets called. However, if I instead use normal event subscribtion via SystemEvents.DisplaySettingsChange ...
I am not able to reproduce the issue (and project is too big to post it here, plus I am not sure what are related parts to post) and I need ideas of w ...
Standard event handler (with operator +=) is one of the memory leakage cause (if it is not unregistered/disposed (with -= operator)). And Microsoft s ...
I'm trying to implement WeakEventManager in PCL using the Reactive library. So the point is that it keeps a weak reference for the subscriber and eac ...
I am using weak events when I can't deterministically unsubscribe (otherwise I would prefer += and -= instead of weak event): This way if object is ...
I have a custom INotifyCollectionChanged class, which essentially just wraps around the standard ObservableCollection. Whenever something is added/rem ...
I have a static class I was using because I didn't like the idea of passing around a gigantic settings file, but then I wished to be able to have inst ...
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 e ...
I am attaching to a 3rd party, long living Deleted event publisher, which ends up keeping my possibly short lived objects alive due to the event handl ...
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 cl ...
I understand the Weak Reference and the Weak Event Pattern. One place where the weak event pattern is used is in DataBinding between Controls and Dat ...
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 ...
I am trying to adapt Michael Dudley's sample code for my own implementation of a weak event manager: Example implementation of weak events using .NET ...
I'm after a good implementation of the weak event patterns for Silverlight to avoid memory leaks. There seem to be a few implementations out there but ...
I'm thinking today at the following scenario: I have two classes A and B. A exposes an event E. B subscribes to this event "E", using a weak event ...
I'm reading "The C# Language", 4th edition, it talks about WeakReference and Weak Event Pattern: CHRISTIAN NAGEL: Memory leaks often result from w ...
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 Col ...
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 ...