Implementing Model-View-ViewModel in Silverlight

Join Tim Heuer and Craig Shoemaker to learn to build a simple quiz application using Model-View-ViewModel in Silverlight.

Download code sample: mvvm-sl.zip

Duration: 1 hour

Download

  • Full: 1024x768, 181MB
  • Web: 640x480, 168MB
  • Mobile: 320x240, 90MB
Anonymous
Parents
No Data
Comment
  • That didn't work either.

    Changed as follows to make it work:

           private void Button_Click(object sender, RoutedEventArgs e)

           {

               ObservableCollection<PMPSample.Model.Question> q = this.DataContext as ObservableCollection<PMPSample.Model.Question>;

               QuestionViewModel vminst = new QuestionViewModel();

               vminst.Questions = q;

               vminst.SubmitAnswers();

           }

    Namespace added System.Collections.ObjectModel

Children
No Data