Introduction to MVVM

Free

This hands-on-lab creates a project template intended as an introduction to the Model-View-ViewModel (MVVM) pattern.

(0) Review
Visual Studio
2010
Download (6,563)
11/10/2011
1.7
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews
Q and A (12)
Sign in to write a review

Be the first to write a review.

Sign in to start a discussion


  • Getting Started
    2 Posts | Last post October 30, 2013
    • I think I'm missing something, but where are the instructions, "Tasks", for the labs? I can open the WPF application in VS2010 but I see no labs or exercises.
    • You have to create a new project - you should then see the template in the list, and that will enable the tutorial. Also, I'll mention that I (unfortunately) haven't had the time to update this for VS 2012.
  • Bad File
    2 Posts | Last post October 30, 2013
    • Patrick (or whomever) when the file is opened (FireFox or IE) I get an error that "cannot read beyond the end of the stream". Could someone fix this perhaps?
      
      Thanks!
      Doug
    • Hi Doug,
      
      Sorry for the delay in replying. Hopefully this was a temporary issue that has been resolved.
  • Convert from XML datafile to SQLite DB
    1 Posts | Last post June 05, 2013
    • Hi
      Can anyone show me how to substitute the BookStoreRepository code to access a SQLite database?
  • Get this work with VS 2012
    1 Posts | Last post May 29, 2013
    • Please tell me how to get this work with VS 2012? Unfortunatly I have no Guidence Browser and Guidence Workflow Explorer installed. What ca I do? 
      
      Thanks
      Dieter
  • minor points
    2 Posts | Last post August 01, 2012
    • Hi Patrick, 
      
      A couple of minor points
      
      Ex 1 - Task 1 says:
      3. Notice that the default MainWindow.xaml was renamed to MainView.xaml and put in the Bookstore.Views namespace
      
      The filename was changed, and the Window's x:Class is Bookstore.Views.MainView but the file was still in the main folder of the app.
      
      Also, the Intro mentions 'concepts learned in the previous sections'.  I couldn't find these, but it looks like I don't need them. Is this right?
      
      Bulk kudos for your work.  
      
      
    • Apologies.  Ex 1 - Task 1 is supposed to be like that.  I did not know you could have a class in a namespace if the class file wasn't physically in that namespace.
      Feel free to delete/ignore.
  • Internal links does not work
    2 Posts | Last post April 12, 2012
    • Hi Patrick,
      
      When I click on any link in Guidance Browser I receive this message:
      "Unable to execute command because the associated guidance action is not in the Enabled (green) state."
      
      How can I overcome it?
      
    • Hi! Can you try clicking the Refresh button in the Guidance Explorer window tab? See http://blogs.msdn.com/b/willy-peter_schaub/archive/2011/04/13/known-feature-builder-issue-which-affects-rangers-architecture-tooling-guidance.aspx)
      
      If that does not work, you could try reinstalling. You can do so in the "Extension Manager" under the "Tools" menu. Hope that does the trick!
  • Extra exercise at end if 3.3
    1 Posts | Last post January 10, 2012
    • Hi Patrick,
      Thanks for the lab. Very helpful.
      At the end of exercise 3.3 there is an extra exercise. What is your suggested answer?
      Thanks
      Craig
  • Please update to v1.7
    1 Posts | Last post November 10, 2011
    • Hi everyone,
      
      As you may have noticed, I have updated the package version over time. I strongly recommend you update to v1.7, as it contains a number of fixes based on the feedback I've received. Thanks!
  • Exercise 2 fixes
    3 Posts | Last post September 06, 2011
    • Thanks for the tutorial, 2 minor fixes.
      John
      1) change in MainViewModel.cs
      from:    private IBookRepository _bookstoreRepository = new BookstoreRepository();
         
      to: private IBookstoreRepository _bookstoreRepository = new BookstoreRepository();
         
      2)App.Xaml.cs
      from
      Views.DataContext = mainViewModel;
      view.Show();
      
      to
      mainview.DataContext = mainViewModel;
      mainview.Show();
    • Execise 3
      Change step 2 from Add Class.. to view MainViewModelTest.cs 
      Add the following to MainViewModelTest.cs 
      using Bookstore.Models; 
    • Hi John,
      
      I believe I corrected the issues you reported in the latest version, as well as a few invalid links in the content. I didn't find an issue with App.Xaml.cs, so don't hesitate to let me know if I missed something (again). Thanks for taking the time to report and hope you found the lab useful!
  • Bugs in guidance
    2 Posts | Last post August 26, 2011
    • 1. The guidance refers to files in Excercise 2/Code folder, which I haven't found. I had to extract those files from zip file deep in AppData/Local... folder.
      2. Some links in the guidance causes the page to go blank and do nothing. For example Copy Code link of OnWindowLoaded in Task 1.3.
      3. Next step in Task 3.1 navigates to Excercise 2.
      Anyway great introduction!
    • Should be fixed in the latest version. I also made it simpler to add the utility classes by simply clicking on a link. Thanks!
1 - 10 of 12 Items