Sign in to follow this  

WPF or WinForms?

This topic is 3587 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I recently downloaded the new .NET 3.5 framework and VC# 2008 Express, and I noticed WPF is introduced with it. Is WPF going to be the new thing to use and WinForms will become deprecated? Or are they meant for two completely different purposes?

Share this post


Link to post
Share on other sites
That's a good question and I don't have a good answer for you.

Right now my thoughts are: Two tools for different jobs.

If you need the eye candy of WPF then use it. Not every application will need such eye candy, especially internally used tools.

Otherwise, use forms.

Share this post


Link to post
Share on other sites
You have to realize WPF vs. WinForms isn't just an API change. The native windowing functionality in Windows has traditionally been derived from user32, gdi, kernel32, etc.. Now, you can switch APIs all you want, but those APIs still depend on the same core windows functionality that low level Windows API does, etc. Hence, your limitations and paradigms never change.

WPF introduces outright new windowing functionality into Windows (and users not on Vista are probably not running it by default). It partly depends on user32, but otherwise it has a new GUI model.

WPF is the new thing, but it will take a while before it really catches on. Also, legacy apps or very portable ones may be developed in WinForms or otherwise. EDIT: I realize I haven't directly answered your question. It's very hard to just deprecate something for Microsoft. What they can say is "preferred" and they want you to move to the WPF route.

Share this post


Link to post
Share on other sites

This topic is 3587 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this