Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Moving from WinForms to WPF

Tags:

winforms

wpf

Well we are considering to move from WinForms to WPF, what pitfalls does WPF have? And we got component one's flexgrid is there any wpf grid that has the same functions? one nice thing with it is that you can implement your own draw method for the cells... It can merge cells print and save to many file formats..

like image 968
Peter Avatar asked Dec 22 '22 06:12

Peter


2 Answers

In general, WPF development is very different from WinForms. You should expect it will take some time to learn the new technology (or you might even need to hire new developers =)).

WPF approach is in many ways better than WinForms' one: check out styles and triggers, data binding, control templating, eventing model.

I would recommend you to start exploring it, but wait for the WPF 4 (and the boring MSDN page) to start the actual migration, because it is going to be even better and close some of the very annoying gaps.

like image 143
Max Galkin Avatar answered Jan 03 '23 18:01

Max Galkin


First of all, WPF works pretty different from Windows Forms and likely requires a different approach on how to structure and design the application. At least it works way better if you do it the way it was conceived.

As for single Windows Forms controls, this shouldn't be a problem. There is a WindowsFormsHost which enables you to include Windows Forms controls in WPF.

like image 36
Joey Avatar answered Jan 03 '23 17:01

Joey