Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Forms vs. WPF [closed]

Tags:

c#

.net

forms

wpf

xaml

I've developed Windows Forms applications for 5 years now. A lot of people say that I should look into WPF. I have a few questions about WPF vs Windows Forms to determine which one is best. WPF is newer than Windows Forms and many people say it'll be the future. Others say that Windows Forms is older and therefor more secure. I am not sure what will be the future. I have googled advantages and disadvantages, but I hope that you can give me a more in dept answer to these questions:

  1. Which one is better based upon performance?
  2. What are the top advantages of using WPF instead of Windows Forms?
  3. What are the top advantages of using Windows Forms instead of WPF?
  4. Which one is more used/liked by businesses?
  5. How hard is it to switch from Windows Forms to WPF?
  6. Which parts of WPF should I definitely look into?
like image 536
Ron van Asseldonk Avatar asked Jul 01 '15 06:07

Ron van Asseldonk


People also ask

Is WPF better than Windows Forms?

Winforms vs WPF both are mainly used for the same purpose for developing and designing windows applications, but WPF can be used for the web application. The difference between them is scalability, performance as WPF can render fast compared to windows forms, complexity, and support.

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 WPF discontinued?

It was in 2006 that Windows Presentation Foundation (WPF) was released with . NET framework 3.0. Over the years it got improved and it is still now in the market in 2021.

Are Windows Forms obsolete?

Because of its high age (born in 2003), WinForm was officially declared dead by Microsoft in 2014. However, Win Form is still alive and well.


1 Answers

  1. There is no meaning to say that WPF is better than windows forms or vice versa. It depends on many factors:

    • What kind of UI you are building. Obviously, the complexity of the views you are designing will factor in to performance on both platforms. They have different layout and rendering pipelines.

    • How effectively you optimize for performance on each platform.

  2. Advantages of using WPF instead of Windows forms:

    • XAML makes it easy to create and edit your GUI, and allows the work to be split between a designer (XAML) and a programmer (C#, VB.NET etc.).

    • It allows you to make user interfaces for both Windows applications and web applications (Silverlight/XBAP).

    • Databinding, which allows you to get a more clean separation of data and layout.

    • Uses hardware acceleration for drawing the GUI, for better performance.

  3. Top advantages of using Windows forms instead of WPF:

    • WPF's in-box control suite is far more limited than that of WinForms.

    • There's greater support in the 3rd-party control space for WinForms. (That's changing, but for now by advantage of time, WinForms has greater support in the community.)

    • The major drawback of WPF is that Mono doesn't really support it for cross-platform (e.g., it doesn't work on Linux and Mac). Originally, Xamarian/Novella said they weren't going to implement it due to the complexity of implementation. I haven't seen anything to the contrary. Not saying it isn't, but their recommendation is to write model classes and then do a OS-specific front end. Even with WPF being open sourced, it may be built on something that isn't easily ported.

  4. https://social.msdn.microsoft.com/Forums/en-US/e134134a-352f-435b-943a-eda7a2b14fc0/wpf-vs-windows-forms-2015?forum=wpf

  5. Depends upon your learning ability.

  6. Which parts of WPF should I definitely look into?

    • XAML: Learn about XAML and how it is used in WPF applications.

    • Layout: Learn about layout panels and how they are used to construct user interfaces.

    • Data binding: Learn how WPF data binding works and how it can be used.

    • Data templates and triggers: Learn how data templates and triggers work and how they can be used.

    • Styles: Learn about how UIs can be styled in WPF.

For more information refer below mentioned URL

Windows Form Vs WPF Windows

like image 146
Litisqe Kumar Avatar answered Oct 13 '22 14:10

Litisqe Kumar