Windows应用程序中的WPF [英] WPF in Windows Application Program

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

问题描述

如何在Windows应用程序中使用WPF? :doh:

How do I use WPF in my windows application program? :doh:

推荐答案

通过重新启动并将其创建为WPF应用程序.您可以在WPF中托管Windows窗体控件,但我不认为相反容易,您需要从WPF开始.
By starting again and creating it as a WPF application. You can host windows forms controls in WPF, but I don''t believe it''s easy to do the opposite, you need to start with WPF.


或者,您可以使用 ElementHost [此处 [
Alternatively, you can use the ElementHost[^]-class to host a WPF-element in a WinForm application.

There''s more information on MSDN here[^] that might be interesting if you''re going to integrate it into an existing application.


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

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