Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there something similar to asp.net mvc for winforms or wpf? [closed]

anybody knows something similar to asp.net mvc for winforms or wpf ?

like image 609
Omu Avatar asked Feb 05 '10 21:02

Omu


3 Answers

For winforms you can implement your own MVP (model view presenter) or MVC (model view controller patterns. There are also some frameworks like CAB (composite application block) that you can use http://msdn.microsoft.com/en-us/library/aa480450.aspx that are basicly a MVC pattern.

like image 75
Patrick Kafka Avatar answered Nov 13 '22 12:11

Patrick Kafka


The most accepted (and in my opinion the most usable) pattern for developing WPF applications is MVVM (stands for Model-View-ViewModel).

You can read a quite broad introduction with a walkthrough here: http://msdn.microsoft.com/en-us/magazine/dd419663.aspx

like image 30
arconaut Avatar answered Nov 13 '22 14:11

arconaut


Well, MVC is a pattern, you can always organize your code in a MVC manner. I'm not quite sure what you are asking for(a framework or something like that... I'm not familiar with any kind of mvc framework for wpf, but this doesn't mean there isn't one), because there is no managing urls in winforms and wpf and the other cool stuff in asp.net-mvc.

If you want to code in WPF way I strongly recommend doing ig the MVVM way.

Here is the ultimate start for wpf mvvm - http://community.infragistics.com/pixel8/media/p/91950.aspx

like image 38
Svetlozar Angelov Avatar answered Nov 13 '22 12:11

Svetlozar Angelov