none
Is there a util to convert Windows Forms apps to WPF apps? RRS feed

Answers

  • Not at the moment.

    David Morton - http://blog.davemorton.net/ - @davidmmorton
    Friday, May 22, 2009 3:06 PM
    Moderator
  • And I am afraid that there will not be such a tool. Although both of Windows Form and WPF are APIs for Windows client programming. But they are based on totally two different structures. WPF has its own render engine while WinForm uses the traditional Win32 controls. At the codes level, it is also difficult to write out such a tool because we cannot find a lot of WinForm old concepts or controls in the new WPF. For example, what will be created for a windows form datagridview in WPF? And WPF threading model also changes a lot. So, I cannot think out a simple tool to manage all of these convertings very well.

    But from another perspective, what is the reason to convert Windows Form apps to WPF apps? I think the best choose is write a new app based on WPF structure and if we want some of the windows form part to be re-used, we can use WPF/WinForm interop. What do you think about?
    http://nayyeri.net/blog/host-windows-forms-controls-in-wpf/
    http://msdn.microsoft.com/en-us/library/ms750944.aspx
    http://blogs.msdn.com/ivo_manolov/archive/2007/07/26/wpf-win32-interop-part-1-hosting-winforms-controls-in-wpf-windows.aspx

    Hope it helps,


    Regards,
    Colbert

    We have published a VSTO FAQ recently, you can view them from the entry thread http://social.msdn.microsoft.com/Forums/en/vsto/thread/31b1ffbf-117b-4e8f-ad38-71614437df59. If you have any feedbacks or suggestions on this FAQ, please feel free to write us emails to colbertz@microsoft.com.
    Monday, May 25, 2009 8:55 AM
    Moderator

All replies

  • Not at the moment.

    David Morton - http://blog.davemorton.net/ - @davidmmorton
    Friday, May 22, 2009 3:06 PM
    Moderator
  • Alas there's a 404 error on the page linked to from the message linked from your link. :(
    Friday, May 22, 2009 3:30 PM
  • Alas there's a 404 error on the page linked to from the message linked from your link. :(

    Well that sucks :(.  Okay, I've taken the link out. 

    The answer is still the same... "not at the moment".
    David Morton - http://blog.davemorton.net/ - @davidmmorton
    Friday, May 22, 2009 3:32 PM
    Moderator
  • I was able to view it (no 404 for me).
    Delphi ancient/C# newbie
    Friday, May 22, 2009 3:46 PM
  • I think he was talking about the link that resided on that page, not the link to the forums.


    David Morton - http://blog.davemorton.net/ - @davidmmorton
    Friday, May 22, 2009 3:50 PM
    Moderator
  • And I am afraid that there will not be such a tool. Although both of Windows Form and WPF are APIs for Windows client programming. But they are based on totally two different structures. WPF has its own render engine while WinForm uses the traditional Win32 controls. At the codes level, it is also difficult to write out such a tool because we cannot find a lot of WinForm old concepts or controls in the new WPF. For example, what will be created for a windows form datagridview in WPF? And WPF threading model also changes a lot. So, I cannot think out a simple tool to manage all of these convertings very well.

    But from another perspective, what is the reason to convert Windows Form apps to WPF apps? I think the best choose is write a new app based on WPF structure and if we want some of the windows form part to be re-used, we can use WPF/WinForm interop. What do you think about?
    http://nayyeri.net/blog/host-windows-forms-controls-in-wpf/
    http://msdn.microsoft.com/en-us/library/ms750944.aspx
    http://blogs.msdn.com/ivo_manolov/archive/2007/07/26/wpf-win32-interop-part-1-hosting-winforms-controls-in-wpf-windows.aspx

    Hope it helps,


    Regards,
    Colbert

    We have published a VSTO FAQ recently, you can view them from the entry thread http://social.msdn.microsoft.com/Forums/en/vsto/thread/31b1ffbf-117b-4e8f-ad38-71614437df59. If you have any feedbacks or suggestions on this FAQ, please feel free to write us emails to colbertz@microsoft.com.
    Monday, May 25, 2009 8:55 AM
    Moderator
  • Yes, now there is http://wf2wpf.codeplex.com/

    Cheers!

    Roman Alifanov(1989)- MCTS-MCAD-MCP-MCT - IT Hero - www.animaonline.blogspot.com
    • Proposed as answer by siahsiah Saturday, April 7, 2012 10:02 AM
    Friday, December 18, 2009 8:27 AM
  • Check out this site www.win2wpf.com .

    this converts most of the c#.net designer code to wpf.

    Saturday, April 7, 2012 10:03 AM