将 WPF 与 WinForm 应用程序混合使用? [英] Mixing WPF with a WinForm application?

查看:39
本文介绍了将 WPF 与 WinForm 应用程序混合使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我相当大的 WinForm 应用程序需要对 GUI 进行大修,但我无法一次性完成所有工作.想知道能不能慢慢加WPF进去,如果可以,怎么加?

My fairly large WinForm application needs a GUI overhaul, but I can't afford to do it all at once. I need to know if I can slowly add WPF into it, and if so, how?

我可以添加 WPF 对话框吗?

Can I add WPF dialogs?

我可以在 WinForm 中添加 WPF面板"以便我可以嵌入 WPF 元素吗?

Can I add WPF 'panels' within a WinForm so that I can embed WPF elements?

编辑

我可以做相反的事情并将 WinForm 对话框放在我的 WPF 应用程序中吗?

Can I do the opposite and put WinForm dialogs in my WPF application?

推荐答案

是的,您可以在 WinForms 应用程序中托管 WPF 控件:

Yes, you can host WPF controls in your WinForms applications:

演练:在 Windows 中托管 3-D WPF 复合控件表单

演练:在 Windows 窗体中托管复合 WPF 控件

这篇关于将 WPF 与 WinForm 应用程序混合使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆