日期:2014-05-17  浏览次数:21037 次

怎么把winfrom窗口嵌入到wpf窗口中
怎么把winfrom窗口嵌入到wpf窗口中

以前我是直接弹出来的  现在要以页签的形示显示出来  咱个弄呀  
------最佳解决方案--------------------
WPF不是有个WindowsFormsHost吗
------其他解决方案--------------------
有没人会呀
------其他解决方案--------------------
我去百度哈 
------其他解决方案--------------------
 System.Windows.Forms.Integration.WindowsFormsHost host = new System.Windows.Forms.Integration.WindowsFormsHost();
            XmlView xmlWindow = new XmlView(_fileName);
            host.Child = xmlWindow;
            this.gridName.Children.Add(host);
这样就行了 嘿嘿
------其他解决方案--------------------
System.Windows.Forms.Integration.WindowsFormsHost host = new System.Windows.Forms.Integration.WindowsFormsHost();
             XmlView xmlWindow = new XmlView(_fileName);
             host.Child = xmlWindow;
             this.gridName.Children.Add(host);


请问 这段实现了将一个windowsform放到WPF指定区域么?那这个windowsform的名字是什么,WPF的指定空间又是哪?