We want to create a huge C# application that uses MVC design pattern. Could somebody guide us how do we start?
If you are planning to do this in Winforms I would suggest moving to WPF.
I was/and currently am in the exact same situation, I'm building an LOB for a very high profile client.
I made mockups in win-forms, then I realized I was going to need a proper framework, I looked around and didn't find much and tried writing my own MVC framework which was a horrendous mess.
Here are some win-form mvc stuff I found:
https://stackoverflow.com/questions/2406/looking-for-a-mvc-sample-for-winforms
Looking for clean WinForms MVC tutorial for C#
How would you implement MVC in a Windows Forms application?
Implementing MVC with Windows Forms
I just made the move to WPF last week and I'm pretty happy, I'm not suggesting that it is impossible to implement a good Windows Forms app. I'm sure there are huge Windows Forms apps out there.
I'm merely saying if you are starting from scratch and if you can afford it, do consider WPF. It definitely helped me.
Here is how WPF helps with good UI separation:
- Views in XAML can be customized and data bound and are completely separate from logic. (As opposed to windows forms code behind)
- WPF supports the MVVM pattern, its neat and simple, and doesn't require huge frameworks. (I've used it in a tiny Silverlight app very successfully) Do have a look at the MVVM Light Toolkit Although sometimes you won't even need a framework.
- WPF does allow you to make good (professional) looking apps, I'm not talking eye candy, for example a checked Listbox, or a treeview-grid is quite simple to make in WPF. You can always upgrade your app later to support enhanced looks etc.
This is just my 2 cents from my own experience last month ok!? =)
精彩评论