Browse by Tags

Tagged Content List
  • Blog Post: Reusing ViewModels in a Universal App – Part 3

    To restate where part 2 ended – We took the MyCalc app and created an empty ViewModel class. We then implemented DelegateCommand so we could expose ICommand objects from the ViewModel . We used that to create commands for the majority of the buttons and modified the XAML to use them. This allowed...
  • Blog Post: Reusing ViewModels in a Universal App – Part 2

    To restate where part 1 ended - We have our Windows App, MyCalc , which currently has no ViewModel and instead has all the logic in the View layer. Which means it can’t be reused for different views, such as one for phone. Our goal is to move that logic into a shared ViewModel and add a Phone view...
  • 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...
Page 1 of 1 (3 items)