WPF和MVC是相同的概念吗? [英] Is WPF and MVC same concepts?

查看:125
本文介绍了WPF和MVC是相同的概念吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对这两个概念都是陌生的.

I am new for both concepts.

1)我想知道MVC和WPF是相同的概念,但是WPF用于桌面,而其他用于WEB吗?

1) I want to know that MVC and WPF is same concepts but WPF for desktop while other is for WEB ?

2)如果我学习其中之一,将很容易学习?

2) Will be easy to learn other one If i learn one of them ?

推荐答案

当您谈论"MVC"(基于问题的标签)时,我认为您可能是指"ASP.NET MVC"技术.无论如何,以下几点可以阐明正在发生的事情:

I think you probably meant "ASP.NET MVC" technology when you were talking about "MVC" (based on the tags of your question). Anyway, here are a few points that may clarify what is going on:

  • ASP.NET MVC 是一项基于

  • ASP.NET MVC is a technology for developing web applications based on the model-view-controller (MVC) pattern. You can twist it a little bit, but the framework is specifically desgined to work with this pattern.

WPF 是用于开发Windows应用程序的技术.编写WPF应用程序时,可以使用各种不同的设计模式,但是最近最流行的一种模式称为 model-view-视图模型(MVVM).在编写WPF应用程序时,您也可以使用MVC模式(组件的组织),但这不能像其他本机方法那样很好地工作.

WPF is a technology for developing windows applications. You can use various different design patterns when writing WPF applications, but the most popular one these days is called model-view-viewmodel (MVVM). You could also use the MVC pattern (organization of components) when writing WPF applications, but that wouldn't work as nicely as more native approaches.

因此,关于您的问题:

  • 它们不是相同的概念-技术不同,并且两种技术使用的通常模式(组织代码的方式)也不同.

  • They are not the same concepts - the technologies are different and the usual patterns (ways of organizing code) used with the two technologies also differ.

学习一种技术可能会使稍稍了解另一种技术变得容易,因为它们都是.NET GUI框架,并且共享一些概念.但是,我认为这不会有太大帮助.

Learning one technology may make it easier to understand the other one slightly, because they are both .NET GUI frameworks and share some concepts. However, I don't think this will help a lot.

这篇关于WPF和MVC是相同的概念吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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