Windows窗体应用程序和WPF [英] windows form application and wpf

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

问题描述

如何在Windows窗体应用程序中使用WPF.例如,我创建一个新的Windows窗体应用程序,并将其命名为form1,在form1上添加一个按钮,然后添加一个新项(WPF).之后,我在WPF中画了一些东西.稍后,我单击form1中的按钮,如何使WPF起作用.

How can i use WPF in the windows form application. For example, I create a new windows form application and name form1, I add a button on form1, Then add a new item(WPF). After that i draw something in the WPF. Later i click the button in the form1 how can i let the WPF work.

推荐答案

hi!
使用ElementHost类在Windows窗体应用程序中托管wpf项
http://msdn.microsoft.com/en-us/library/system.windows.forms.integration.elementhost.aspx
hi!
use ElementHost Class to host wpf items in windows forms applications
http://msdn.microsoft.com/en-us/library/system.windows.forms.integration.elementhost.aspx


查看此链接:

http://windowsclient.net/learn/video.aspx?v=297143 [ ^ ]
Check out this link :

http://windowsclient.net/learn/video.aspx?v=297143[^]


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

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