WeakEvents and MVVM
I’ve been doing research into solving the WeakEvent problem as part of building an MVVM framework that suites my needs. Although I came across a number of articles, none presented as elegant a solution as Thomas Levesque’s post A simple implementation of the WeakEvent pattern. Pretty much, the only way in which this is lacking for me is that it is not thread-safe, and doesn’t deal with cross thread dispatching. But, that’s a whole different problem.
Advertisement