在另一个 wpf 窗口中有一个 wpf 窗口 [英] Have a wpf window inside another wpf window

查看:48
本文介绍了在另一个 wpf 窗口中有一个 wpf 窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在另一个 WPF 窗口内托管 WPF 窗口.我有几个有点复杂的表格.但现在为了简化事情,我试图将其中一些合并为一个仪表板"表单中的标签页.

Is there a way to host a WPF window inside another WPF window. I have a couple of somewhat complex forms in place. But now to simplify things I am trying to merge a few of them as tabpages inside one 'Dashboard' form.

请注意,我不是要托管 Windows 窗体,而是要托管另一个 WPF 窗口

Please note that I am not trying to host a Windows Form, but another WPF window

推荐答案

如果你想要标签页,为什么不使用带有 UserControls 的 TabControl 呢?如果您需要将这些选项卡之一转换为浮动窗口,只需将 UserControl 放在一个新窗口中...

If you want tabpages, why not use a TabControl with UserControls inside ? If you need to transform one of these tabs to a floating window, just put the UserControl in a new Window...

这篇关于在另一个 wpf 窗口中有一个 wpf 窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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