Hi all, this is my first post here so forgive me if I break some forum rules. I am sure this question has come up before but I couldn't find any articles on it.
I have a project that was developed in MFC but will now be using C# for the UI and C++ Interop for the backend. What I want to know is if I developed the UI in C# and then later want to use WPF for the UI. Would I have to re-write the UI app in WPF or is it possible to convert the C# UI app to use the WPF framework?
Thanks in advance.
John
Loading
Asad ButtPosted Aug 23, 2009, 5:52 PM
If you have developed / developing your app(s) in Win Forms, there are several options.
You may add your existing user interface (windows Forms Controls) in your new WPF Application.
A WPF application can manage your Windows Forms controls, and a Windows Forms application can manage WPF controls all in same application. To host Windows Forms controls, a WPF application relies on WPF's WindowsFormsHost control. Similarly, a Windows Forms application uses ElementHost, a Windows Forms control that's capable of hosting WPF controls, panels, and other elements.
their is a project underway by Microsoft:
http://wf2wpf.codeplex.com/
check the following links on Microsoft support Forums:
http://msdn.microsoft.com/en-us/library/ms742875.aspx
http://wf2wpf.codeplex.com/
http://windowsclient.net/learn/integration.aspx
AsdiButt