Click here to Skip to main content
12,395,593 members (57,857 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#
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 16-Nov-12 0:26am
v2

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 16 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100