I’m developing a system using WPF 4. I pretend to use MVC in development.
I never used MVC before, so I’m a little confused about concepts. Some time (ages) ago I develop some Delphi software more or less with that scheme:
- a thin client application to be installed in several machines that talk with the…
- …server application that talks with the thin clients and is the only that connects to database.
In that new project, I pretend develop that thin client (the View part of MVC) using WPF, but the another pieces I’m unsure what I need do. By example:
1. The “Model” part will be my Server application, but the “Controller” will work on the client or server machine?
2. How I do the communication between server and client in that case? sockets? remoting?
3. What you recommend? There is some “Basic Sample” that kind of project to download and to study?
I thank you any light here 🙂
MVVM (Model View View Model) is a MVC-like design patern that is very well suited to WPF and Silverlight development, in part because of its focus on binding, at which Xaml is highly functional.
As for client-server communication, WCF services is the recommended approach these days.
There are many introductory articles out there on MVVM client, WCF communication based applications. Here’s one sample that I learned off of myself:
http://calcium.codeplex.com/
Additionally, there are many MVVM frameworks out there available for WPF. A couple are:
MVVM Light (simple and easy to get started with):
http://www.galasoft.ch/mvvm/getstarted/
Caliburn (highly functional and feature rich):
http://caliburn.codeplex.com/