All the work shown in this github example is for this article originally posted by Josh Smith in 2009: https://msdn.microsoft.com/en-us/magazine/dd419663.aspx?ranMID=24542&ranEAID=TnL5HPStwNw&ranSiteID=TnL5HPStwNw-bNouxMDxJkPFlazxVPRRpQ&epi=TnL5HPStwNw-bNouxMDxJkPFlazxVPRRpQ&irgwc=1&OCID=AID681541_aff_7593_1243925&tduid=(ir_43836462N98ddb4dca41f0a70d1f0ced1)(7593)(1243925)(TnL5HPStwNw-bNouxMDxJkPFlazxVPRRpQ)()&irclickid=43836462N98ddb4dca41f0a70d1f0ced1
For some reason I was not able to find the code easily and once I was I wanted to rehost it if someone else needed it. I tried to search for Josh Smith but was not able to find it.
This is a primer to MVVM and is not the 'best way' to do MVVM. Just one way to do it. Essentially you can load up your ViewModel to your View in
- Code behind
- Inline in the xaml to a reference to your ViewModel
- In the resource dictionary to have many references of views to their respective view models.
This main course follow method 3 and is just a primer to get your started on MVVM in and of itself.