MVVM Light

WP7 – Sharing data between pages with MVVM

Since the start of my WP7 app, I have leveraged IOC (specifically Ninject) to fill dependencies on my ViewModels following the MVVM Light samples.  To briefly summarize, I have an app level resource called Locator which provides properties for each of my ViewModels.  These properties get the instance from the IOC container.  Locator:     public …

WP7 – Sharing data between pages with MVVM Read More »

Unit Testing the Setting of MediaElementState in Silverlight

I recently had the need to change the state of a MediaElement to coincide with other page functionality.  You can easily change the state of a MediaElement from the code-behind but you can’t unit test this.  At first I thought, it would be easy to just bind the CurrentState property to a ViewModel property but …

Unit Testing the Setting of MediaElementState in Silverlight Read More »