描述
环境:VM4.0.0 + VS2013及以上
现象:在算子SDK开发过程中,用户如何使用封装好的Winform模板匹配等控件?
解答
C#
xmlns:wf=“clr-namespace:System.Windows.Forms;assembly=System.Windows. Forms”
xmlns:wfi=“clr-namespace:System.Windows.Forms.Integration;assembly= WindowsFormsIntegration”
C# XAML
"C# .CS
UserControl1 user= new UserControl1 ();
this.host.Child = user; //使XML文件中的host中的内容为用户控件user