Monday, August 6, 2012

C# Open WPF window in WindowsForm APP

using System;  
using System.Windows.Forms;  
using System.Windows.Forms.Integration;  
 
var wpfwindow = new WPFWindow.Window1();  
ElementHost.EnableModelessKeyboardInterop(wpfwindow); 
wpfwindow.Show();
 
you need to add project reference to WindowsFormsIntegration.dll 

No comments:

Post a Comment