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
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 CPallini 375
1 Sergey Alexandrovich Kryukov 370
2 BillWoodruff 314
3 George Jonsson 279
4 OriginalGriff 217
0 OriginalGriff 5,030
1 CPallini 4,115
2 Sergey Alexandrovich Kryukov 3,554
3 George Jonsson 2,826
4 Gihan Liyanage 2,386


Advertise | Privacy | Mobile
Web02 | 2.8.140916.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