WPF中Windows窗体控件的使用 [英] Windows Form Control use in Wpf
本文介绍了WPF中Windows窗体控件的使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以在WPF应用程序中使用Windows窗体控件吗?请给我一个解决方案..
Can I use Windows Forms controls in a WPF application? plz give me a solution..
推荐答案
是的.借助System.Windows.Forms.Integration.WindowsFormsHost
,可以在WPF
应用程序中使用Windows Forms control
.
请参阅以下说明如何使用它的文章.
WPF教程-在WPF中使用WinForms
[^ ]
演练:在WPF中托管Windows窗体控件 [演练:使用XAML在WPF中托管Windows窗体控件 [
Yes. TheWindows Forms control
can be used inWPF
application with the help ofSystem.Windows.Forms.Integration.WindowsFormsHost
.
Please see the following articles which explain how to use this.
WPF Tutorial - Using WinForms In WPF
[^]
Walkthrough: Hosting a Windows Forms Control in WPF[^]
Walkthrough: Hosting a Windows Forms Control in WPF by Using XAML[^]
这篇关于WPF中Windows窗体控件的使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文