Windows Phone 7 and OData

Following in the example of Chris Koenig, I develop a Windows Phone 7 application using an OData feed to display movie titles. Where his example uses MVVM Light, mine uses Update Controls.

Things to keep in mind:

  • Separate independent data from dependent data.
    • Only store data in the model (independent).
    • Create properties that observe that data the view model (dependent).
  • Don’t use data-binding types directly in your code.
    • No INotifyPropertyChanged.
    • No ObservableCollection.
  • Use a shared navigation model rather than message passing to make view models agree.
    • Store the user’s selection in a navigation model (independent).
    • Observe that same navigation model from two view models (dependent).

Update Controls Windows Phone 7 from Michael L Perry on Vimeo.