Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is WPF and MVC same concepts?

I am new for both concepts.

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

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

like image 213
Freshblood Avatar asked Jun 20 '10 13:06

Freshblood


People also ask

Is WPF MVVM or MVC?

MVVM is written for desktop application with data binding capabilities – XAML and the INotifyPropertyChanged interface. If you want to do modification in the View-Model, the View-Model uses an observer pattern. The MVVM pattern is mostly used by WPF, Silverlight, nRoute, etc.

Is WPF still relevant 2022?

“WPF would be dead in 2022 because Microsoft doesn't need to be promoting non-mobile and non-cloud technology. But WPF might be alive in that sense if it's the best solution for fulfilling specific customer needs today. Therefore, having a hefty desktop application needs to run on Windows 7 PCs with IE 8.

Is .NET and MVC same?

The primary difference between ASP.NET MVC and ASP.NET Core is their cross-platform approach. ASP.NET Core can be used on Windows, Mac, or Linux, whereas ASP.NET MVC can only be used for applications on Windows.

Is MVC part of .NET framework?

The ASP.NET MVC framework is a lightweight, highly testable presentation framework that (as with Web Forms-based applications) is integrated with existing ASP.NET features, such as master pages and membership-based authentication. The MVC framework is defined in the System.


1 Answers

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 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 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.

So, regarding your questions:

  • 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.

  • 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.

like image 154
Tomas Petricek Avatar answered Sep 22 '22 16:09

Tomas Petricek