添加引用System.Windows.Forms
在XAML中加入命名空间
xmlns:forms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
然后就可以直接写了,如
<forms:StatusBarPanel></forms:StatusBarPanel>
VS2017打控件名字时会有智能提示,注意,并不是所有WinForm控件都能用,还是有一部分控件依然打不出来,想用的话只能在后台代码区打了
添加引用System.Windows.Forms
在XAML中加入命名空间
xmlns:forms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
然后就可以直接写了,如
<forms:StatusBarPanel></forms:StatusBarPanel>
VS2017打控件名字时会有智能提示,注意,并不是所有WinForm控件都能用,还是有一部分控件依然打不出来,想用的话只能在后台代码区打了