在Winforms中托管WPF控件 [英] Hosting WPF controls in Winforms
本文介绍了在Winforms中托管WPF控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的应用程序是使用WinForms开发的。是否可以承载WPF DataGrid
, Button
, ListBox
, ComboBox
等在WinForms用户控件中?
My Application is developed using WinForms. Is it possible to host the WPF DataGrid
, Button
, ListBox
, ComboBox
etc in WinForms User Controls?
推荐答案
是的,使用 ElementHost
Winforms中的控件并在其中托管WPF内容。
Yes, it's possible using the ElementHost
control in Winforms and hosting WPF content inside of it.
这篇关于在Winforms中托管WPF控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文