Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MVVM in Visual Studio 2010?

I am trying to use this pattern MVVM pattern with the tutorial: http://www.codeproject.com/KB/WPF/MVVMQuickTutorial.aspx It seems it might work for Visual Studio 2008 but what about Visual Studio 2010? I am trying to install the template "WPF Model-View Application" but according to some reviewers at the Codepeax project of "WPF Model-View-ViewModel Toolkit", this project appears to be dumped by Microsoft or buggy? Sorry but I am confused. I cannot get straight answers on what the best practices for developing a WPF application according to Microsoft. Is the MVVM pattern no go good for an updated Visual Studio 2010 environment using C#?

What is the best and modern pattern to use for WPF in Visual Studio 2010 using C#? Can someone send out a decent easy end to end tutorial on this? I like to download sample code and project solutions as well. Thanks a billion

like image 220
heavy rocker dude Avatar asked Feb 24 '23 10:02

heavy rocker dude


2 Answers

MVVM is a pattern, that is it's language agnostic. You can apply it in java, c++, vb etc.
The tutorial/demo may not work in c# 4, but the principles would be the same.

Are you having problems understanding a specific point?

like image 115
taylonr Avatar answered Mar 03 '23 19:03

taylonr


There is an excellent toolkit called MVVM Light that works perfectly in Visual Studio 2010.

There is a bunch of information about it available here: http://www.galasoft.ch/mvvm/

This tutorial will probably be especially helpful: http://www.galasoft.ch/mvvm/creating/

There is also a great series from Jesse Liberty here: http://jesseliberty.com/2011/01/04/wpfs-mvvm-light-toolkit-soup-to-nuts-part-i/

like image 30
theChrisKent Avatar answered Mar 03 '23 19:03

theChrisKent