如何在父Windows窗体中打开子Wpf表单 [英] How to Open child Wpf form inside Parent Windows form

查看:95
本文介绍了如何在父Windows窗体中打开子Wpf表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序是windows app.but,其中一个表单是WPF Form.I想在My Windows Parent Form中打开此WPF表单。如何将此表单分配给MDIparent表单?

我的代码:



BIzsopEditor.Publish objpub = new BIzsopEditor.Publish(Globalclass.Activedatabase);

objpub.MdiParent = this; //此行发生错误...如何设置?

objpub.Show();

my application is windows app.but in that one form is WPF Form.I want to open this WPF Form in My Windows Parent Form.How to assign this form to MDIparent Form?
my code:

BIzsopEditor.Publish objpub = new BIzsopEditor.Publish(Globalclass.Activedatabase);
objpub.MdiParent = this; //error occurs for this line...how to set this?
objpub.Show();

推荐答案

如何在父窗口中打开子窗口,C#windows应用程序 [ ^ ]



http://social.msdn.microsoft.com/Forums/vstudio/en-US/98ba4143-38cf- 4aa4-a174-b969d4950a6c / how-to-user-control-window-open-in-main-parent-parent-window-?forum = wpf [ ^ ]



问候,

Praveen Nelge
How to open Child window in parent window,C# windows Application[^]

http://social.msdn.microsoft.com/Forums/vstudio/en-US/98ba4143-38cf-4aa4-a174-b969d4950a6c/how-to-user-control-window-open-in-mid-of-main-parent-window-?forum=wpf[^]

Regards,
Praveen Nelge


尝试观看这个。

希望它会有所帮助
try to watch this.
Hope it will help


这篇关于如何在父Windows窗体中打开子Wpf表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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