开发者

What is the best way to start creating a large C# app using MVC? [closed]

开发者 https://www.devze.com 2023-02-12 20:47 出处:网络
It's difficult to tell what is being asked here. This questi开发者_如何学编程on is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current for
It's difficult to tell what is being asked here. This questi开发者_如何学编程on is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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:

  1. Views in XAML can be customized and data bound and are completely separate from logic. (As opposed to windows forms code behind)
  2. 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.
  3. 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!? =)

0

精彩评论

暂无评论...
验证码 换一张
取 消