是否可以将MVC设计模式应用于Windows应用程序? [英] Is it possible to apply MVC design pattern to Windows Application?

查看:58
本文介绍了是否可以将MVC设计模式应用于Windows应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,



适用于桌面/窗口应用的MVC设计模式?



I我以前听过MVC模式只适用于Web / ASP.Net应用程序!!在这种情况下,



如果MVC不适合Windows应用程序,任何其他设计模式都适合桌面使用



应用程序开发?有人可以在这个问题上建议/咨询吗?

Hello All,

IS MVC Design pattern suitable to Desktop/windows Application?

I am used to hear MVC pattern is suitable for Web/ASP.Net application only!!. In this case,

If MVC is not suitable to windows application, anyother design pattern is good to desktop

application development? can somebody please suggest/consult in this issue?

推荐答案

MVC是一种通用模式,不依赖于任何操作系统或开发环境。更多的是,稍微有点幻想你可以在其他领域使用它然后软件。



http://de.wikipedia.org/wiki/Model_View_Controller [ ^ ]



uuups抱歉在这里英语:

http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller [ ^ ]
MVC is a general pattern and not depending on any OS or development environement. More then this, with a little bit phantasie you can use it also in other fields then software.

http://de.wikipedia.org/wiki/Model_View_Controller[^]

uuups sorry here english:
http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller[^]


确实,正如idle63所说,概念上MVC已经存在了很长时间。



你可以找到2013年6月的一篇文章CodeProject在Windows窗体中探索MVC:[ ^ ]。这里有一篇2012 CP文章:[ ^ ]。



有关Stackoverflow的有趣讨论:[ ^ ]。



您可以从将应用程序的表单视为视图开始,并考虑如何将应用程序的控制流程...动态交互...转换为可以作为Controller的类。
Indeed, as idle63 said, conceptually MVC has been around a long time.

You can find a June 2013 article here on CodeProject exploring MVC in Windows Forms: [^]. A 2012 CP article here: [^].

An interesting discussion on Stackoverflow: [^].

You might start by thinking of your Application's Forms as "Views," and considering how you can move the flow-of-control of your Application ... the dynamic interaction ... into a Class which can function as the "Controller."


我不是Winf-Form开发人员。但你可以使用MVC for Win-Form。在这里有人使用MVC开发了一些东西,请查看。

使用C#/ WinForms的模型 - 视图 - 控制器(MVC)模式 [ ^ ]



但我听说MVVM很合适对于Win-Form。你见过WPF& Silverlight应用程序? MVVM那里。请查看以下文章。

MVVM(Model-View-ViewModel) )用于Windows窗体应用程序的模式,使用C# [ ^ ]
I'm not a Winf-Form developer. But you could use MVC for Win-Form. Here someone developed something using MVC, check it out.
The Model-View-Controller(MVC) Pattern with C#/WinForms[^]

But I heard that MVVM is suitable for Win-Form. Have you seen WPF & Silverlight applications? MVVM there. Check the below article.
MVVM (Model-View-ViewModel) Pattern For Windows Form Applications, using C#[^]


这篇关于是否可以将MVC设计模式应用于Windows应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆