---恢复内容开始---网络
1、ACTIVEX及其相关概念分布式
使用 WindowsFormsHost 元素可将 Windows Forms控件放置到 WPF 元素或页面中。ui
若要在 Windows Forms控件或窗体中承载 WPF 元素,使用 ElementHost控件this
System.Windows.Forms.Integration.WindowsFormsHost host = new System.Windows.Forms.Integration.WindowsFormsHost();spa
3.实例化Activex控件 、初始化控件、控件复值到host 代理
txsl1 = new activex();orm
host.Child = txsl1;htm
4.添加Host对象到WPF 窗体对象
this.mainGrid.Children.Add(host);element
---恢复内容结束---