Browse by Tags

Tagged Content List
  • Blog Post: WPF ICommandSource Implementations Leak Memory!

    Actually the title of this article should be entitled “How to use WeakEventManager with ICommand implementations”, but the memory leak title is more exciting (and true) Overview Some WPF controls, such as Buttons, are command sources . A command source has 3 properties, Command, CommandParameter...
  • Blog Post: WeakEventManager and IWeakEventListener

    When my team first starting hitting “memory leaks” due to event handlers we investigated a variety of solutions. There are many examples on the web for implementing some kind of weak listener – but interestingly almost all of them have some flaw. In the end we settled on using WeakEventManager and its...
Page 1 of 1 (2 items)