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 0:26am
Edited 16-Nov-12 0:40am
Tadit Dash83.4K
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
Your Filters
Interested
Ignored
     
0 Guruprasad.K.Basavaraju 490
1 Shai Vashdi 474
2 Sergey Alexandrovich Kryukov 291
3 OriginalGriff 135
4 praveen_07 115
0 Sergey Alexandrovich Kryukov 9,185
1 OriginalGriff 5,335
2 Peter Leow 4,040
3 Maciej Los 3,540
4 Abhinav S 3,308


Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 16 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid