So which one is the newer one, and why would I use one over the other. Or more importantly, over Windows Forms?
views:
661answers:
3Neither is newer than the other, they have both been cooking for roughly the same period of time.
HOWEVER they are totally different things :
WPF == Windows Presentation Foundation WCF == Windows Communication Foundation
WPF is the direct replacement for WinForms. WCF is a framework for talking to webservices, it replaces Remoting. I could waffle for hours on this, but that is a short answer for you :)
From Microsoft websites:
Windows Communication Foundation is...
a part of the .NET Framework that provides a unified programming model for rapidly building service-oriented applications that communicate across the web and the enterprise..
Windows Presentation Foundation
Windows Presentation Foundation (WPF) provides developers with a unified programming model for building rich Windows smart client user experiences that incorporate UI, media, and documents.
WPF is NOT a replacement for WinForms. Consider LOB applications, running on bulk enterprise hardware. The overhead of WPF is ridiculous.
Consider the following On my machine I have VS2008 and VS2010 installed.
Visual Studio 2008 (WinForms I believe) is only ~100mb of memory.
Visual Studio 2010 Beta 2 (WPF) is ~300mb.
That's just stupid. There's no reason for VS to be using WPF. It doesn't need flashy graphics or anything special that WPF offers. I'm for one sticking to VS2008. There's a time and a place when WPF is great to use, but Visual Studio and as I said LOB applications are not the time or place, it's just adding ridiculous overhead for pointless reasons.
However, WPF is a lot easier to work with than WinForms (once you UNDERSTAND it, the learning curve is also a lot larger)