可拖动的WPF对接或子窗口 [英] Draggable docking or subwindow of WPF

查看:67
本文介绍了可拖动的WPF对接或子窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我一直在努力制作可以拖到主窗口内任何地方的东西。

我需要一些东西像MDI或同一窗口内的多个页面,它们可以在UI上移动。
$
似乎WPF不支持这种功能。

BTW,我是宁愿不使用第三方软件。

有谁知道怎么做?

Recently, I keep trying to make something that can be dragged to any place within the main window.
I need something like MDI or multiple pages inside the same window and they can be moved at UI.
It seems that WPF does not support kind of this functionality.
BTW, I'd rather prefer not using third-party software.
Does anyone know how to do it??

感谢您的回复。

推荐答案

WPF不支持像Winform这样的MDI,你需要开发自己的MDI容器,  但是第三方库。

WPF DOES not support MDI like Winform, you need develop yourself MDI Container,  but the third-party library does.

在互联网上搜索,您可以找到更多开源来实现这一点。请检查:

Searching on the internet you can find more open source to implement this. Please check:

https://archive.codeplex.com/?p=wpfmdi

https://github.com/andrassebo/mdicontainer

最好的问候,

Bob


这篇关于可拖动的WPF对接或子窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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