Click here to Skip to main content
12,950,272 members (76,224 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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

1 solution

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

Solution 1

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();

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
OriginalGriff 5,829
CHill60 3,460
Maciej Los 2,953
Jochen Arndt 1,975
ppolymorphe 1,820

Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 16 Nov 2012
Copyright © CodeProject, 1999-2017
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