Click here to Skip to main content
Rate this: bad
good
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 1: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 at 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
0 DamithSL 405
1 OriginalGriff 245
2 Sergey Alexandrovich Kryukov 207
3 Peter Leow 185
4 Afzaal Ahmad Zeeshan 154
0 OriginalGriff 7,460
1 DamithSL 5,519
2 Sergey Alexandrovich Kryukov 4,954
3 Maciej Los 4,936
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 16 Nov 2012
Copyright © CodeProject, 1999-2014
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