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 (5,796)
11/10/2011
1.7
View
E-mail Twitter del.icio.us Digg Facebook
Add To Favorites
Description
Reviews
Q and A (9)
Sign in to Write a Review

Be the first to write a review.

Sign in to Start a Discussion


  • Bad File
    1 Posts | Last Post May 14, 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
  • 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!
  • Installation Issue
    3 Posts | Last Post August 25, 2011
    • I receive the following PathTooLongException when I try to install:
      
      Install Error : System.IO.PathTooLongException: C:\Documents and Settings\nmotley.xxxxxxxxxxxxxx\Local Settings\Application Data\Microsoft\VisualStudio\10.0\Extensions\Patrick Danino\Introduction to MVVM\1.2\Templates\Projects\Intro To MVVM\Exercises\LabComplete.zip: Bookstore/Commands/DelegateCommand.cs
      
      Any way to work around this?
    • Hi Nick- Are you running on Windows XP or below? I'll look into shortening the paths and filenames I do have control over, but the Visual Studio extension manager unfortunately imposes much of the structure. I'll update this discussion thread once the issue is resolved. Thanks!
    • If you'd like to try a temporary workaround and have admin access on your machine, try creating a local user with a short username, and seeing if that might do the trick.
  • Bad interface in Task 1.3
    3 Posts | Last Post August 25, 2011
    • I don't know where else to report this bug but in Task 1.3 there is interface IBookRepository which doesn't exist. It was propably meant to be IBookstoreRepository.
      
      Great job, anyway, thanks. 
    • Also, the OnStartup method should be declared as private void OnStartup(object sender, System.Windows.StartupEventArgs e) instead of private void OnStartup(object sender).
    • Thanks Jakub - I'll make sure to correct. Appreciate you letting me know!