Click here to Skip to main content
15,896,440 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have one solution with two projects.
One project is windows form and another one is WPF form.
I want to call a WPF form from Windows form.
How can i do this ? Please help me if you know this...

Thank you.

[edit]Removed pre tags.[/edit]
Posted
v2

1 solution

Hi You can call a wpf form from a windows form.
1. Both projects should be same framework.
2. Refer the following dlls in windows form project
a. PresentationCore.dll
b. PresentationFramework.dll
c. WindowsBase.dll
d. System.Xaml.dll
e. Your wpf project

WpfApplication1.MainWindow wpfMain = new WpfApplication1.MainWindow();
          wpfMain.Show();


Regards
Dominic
 
Share this answer
 
Comments
ssyuvaraja 16-Nov-12 7:28am    
Thank you. It worked.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900