MVC frameworks for .NET desktop applications [clos

2019-04-06 17:27发布

问题:

I've been playing a lot with MVC lately in the forms of ASP.NET MVC and Django (MTV actually) and I must say that I love it.

Are there any similar frameworks for creating desktop WinForm apps?

回答1:

Not that I know of.

Most of my Winforms apps use the MVC or MVP pattern though. I've noticed that when creating Winforms apps you don't really need much of a framework. There is no routing infrastructure and no view-rendering. I find that I don't have to do much plumbing to use these patterns.

That might explain why there are no high profile frameworks in that space.



回答2:

A winforms app blends the view and controller into pretty much one thing, the form. In other words, you are working with a model view/controller pattern. Much of the work for the view and controller is already done.