在WPF应用程序中托管WPF应用程序 [英] Hosting a WPF application in a WPF application

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

问题描述





如何在WPF应用程序中托管WPF应用程序(它显示的是UserControl)?



谢谢,



我尝试了什么:



我尝试了这里描述的解决方案:

在WPF窗口应用程序中托管EXE应用程序 [ ^ ]



解决方案正常记事本和Notepad ++,但它打开了一个新的窗口,我的WPF应用程序

Hi,

How to host a WPF application (it's displaying a UserControl) inside a WPF application ?

Thank you,

What I have tried:

I tried the solution described here :
Hosting EXE Applications in a WPF Window Application[^]

The solution is working well with Notepad and Notepad++ but it's opening a new window with my WPF application

推荐答案

如果你要坚持两个应用程序,这是你最好的行为'得到了。



不要仅仅为了用户控制而使用其他应用程序。让用户控制它自己的库,你可以在任意数量的应用程序中使用它。
If you're going to insist on two application, that is the best behavior you're going to get.

Don't use another application simply for a user control in it. Make the user control it's own library and you can use it an any number of applications.


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

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