Is WPF and MVC same concepts?


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 ?




Wanting to mix server side ASP.Net MVC expansion in javascript file, but how… RenderPartial?

1:



Problem with Primary Key in a Partial View shared by Create and Edit views
I think you probably meant "ASP.NET MVC" technology when you were talking about "MVC" (based on the tags of your question).


How to start a new ASP.NET MVC site?
Anyway, here are a few points that may clarify what is going on:.
How can I determine the current controller action in an mvc sitemap?
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..


2:


MVC (model-view-controller) is a design pattern, and is not specific to a particular technology set.. WPF (Windows Presentation Framework) is Microsoft's windowing library, and can be used in an MVC-designed system.

However there's nothing to enforce this and MVC pattern usage can certainly be abused with WPF.. MVC is a widely used pattern and familiarity with it is going to be useful regardless of the technology set used (whether it's web-based, WPF, Swing etc.).

Note that MVC is usually associated with GUIs, but there's no particular restriction and the pattern can be used wherever a model and its changes need to be reflected to different consumers with different views on that data..


3:


No,. WPF and Silverlight are much more closely related than WPF and ASP.NET MVC.

Silverlight is a seperate runtime and is basically a subset of .NET; Silverlight uses XAML markup for the UI, which supports a subset (and some web-specific) features from WPF and .NET.. ASP.NET MVC is Microsoft's implementation of the MVC pattern.

What differentiates MVC from WebForms ("classic" ASP.NET web-development) is that MVC assists in using best-practices and giving the developer a high-level of control of the output of the application--WebForms was more RAD (Rapid Application Development) driven, making it easy to begin to work with--but putting some concerns about best-practes, pattens, and control to the wayside.. As for which is easier: MVC will likely be quicker to start with, but doing full-blown web-development requires a set of technologies (HTML/CSS/JavaScript/.NET) whereas WPF keeps your required knowledge more focused (XAML/WPF/.NET)..


4:


2) Will be easy to learn other one If i learn one of them ?.
Shure: They both can be programmed using c# or vb.

And they both can be programmed using Visual Studio.. But the same is true for any technology that incorporates .NET technology (Winform, ASP.NET, Silverlight...).


5:


No.

MVC is a pattern while WPF is a Microsoft technology.. You could with some effort likely use the MVC pattern in WPF but more popular in WPF is MVVM nowadays.

MVC itself is not restricted to web only.. Grz, Kris..



54 out of 100 based on 19 user ratings 644 reviews

@