Awarious OfficePortal - HRMS Application

Is WPF replacement for Winforms? How WPF different from Winforms?

+1 vote
asked Jun 9, 2013 in WPF by Aadhira

Hello everyone, In our company we are planning to rewrite the existing winforms application with latest technologies. So, we are planning to use WPF. But I am not sure is it a right choice? because I could not see much changes in WPF except some new controls added. So, Is WPF really a replacement for winforms? How WPF is different from Winforms? If anybody developed WPF application, could you please show some lights on it?


1 Answer

0 votes
answered Jun 10, 2013 by anonymous
selected Jun 19, 2013 by administrator
Best answer

I don't think WPF is a replacement for Winforms. But WPF is a more advanced framework for creating windows based applications. Lot of developer use to think that, it is just create application with good look and feel, with animation like flash. But WPF is more than that. The framework itself very different than Winforms.

First thing is, Winforms uses User32 and GDI32 dlls extensively to work. But WPF is not using GDI32 at all. But it does very minimal usage of User32.

WPF has more advance rendering system where all controls will be vector based rendering. So, the control will be looking with same clarity even if the resolution changes. But that is not the case in Winforms because they are using GDI32, which will not do automatic scaling. If you use the same application in higher resolution, that will be displayed in pixels.

Another cool thing is separating code behind from design. Which will help the developers to concentrate on coding and the designers to concentrate on design. Even though, XAML is the language used to design WPF application by default, we can do WPF applications without even XAML.

Next feature is, Writing 3D application and making wonderful graphics are very powerful in WPF because, WPF frameworks will be able to directly talk to DirectX through the unmanaged layer called Media Integration Layer(MIL). Also, WPF make use of 3D rendering pipe line to render everything on the screen so, that make the WPF possible to create very powerful graphics application

WPF has very powerful Data Binding concepts using Dependency object. Also, WPF has advanced concepts for Text and Documents layout.

Apart from all of the above points, another good reason, why you may want to use WPF is, Microsoft is extensively using WPF for Visual Studio and other things. With the latest Visual Studio Editors, we can do zoom and other functionalities, just because of WPF.

Even though Winforms are very successful for the past 15 to 20 years may be more, we have new frame with advanced concepts to support all new hardware changes we see in the recent days also, its better to move ahead with the new technologies and stay on top. Since we have no other new framework for windows except WPF, I would suggest go with that until something new comes.

Note: WPF has very big learning curve to make the application successful. Otherwise, you will see lot of performance and other issues

Your answer


Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
site design / logo / content © 2013 - 2019