本文介绍了如何删除WPF MDI子窗体标题栏和边框部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hi 我正在使用WPF MDI开发一个示例应用程序。我使用User Control作为子表单。它工作正常,但我得到子窗体标题栏及其边框,因此它占用MDIContainer中的空间。我想删除那个空间。所以任何人都可以帮我删除这个空间吗? 请参阅图片:图片 [ ^ ] 我尝试了什么: 我试图设置mdi容器margin = 0,我有试图设置borderbrush和其他东西,但没有什么是有用的。
Hi I am developing one sample application by using WPF MDI. I used User Control as child form. It works fine but I am getting child forms titlebar and its border so it occupies space in MDIContainer. I want to remove that space. So anyone can help me to remove that space? Please see image : Image[^] What I have tried: I have tried to set mdi container margin=0, i have tried to set borderbrush and other thing also but nothing is useful.
推荐答案查看: MahApps。 Metro文档 [ ^ ]和 GitHub - ButchersBoy / Dragablz:WPF的可拖动和可撕掉的选项卡控件 [ ^ ]用于更现代的类似MDI的界面,例如Google Chrome作为替代... Check out: MahApps.Metro Documentation[^] and GitHub - ButchersBoy/Dragablz: Dragable and tearable tab control for WPF[^] for a more modern MDI-like interface like Google Chrome as an alternative...
据我所知,WPF.MDI是一个无形的骗局特伦。这意味着无论如何你都可以根据自己的需要进行修饰。如果我是你,我会复制一份现有主题 [ ^ ]并玩弄它得到我想要的效果。 From what I can tell, WPF.MDI is a lookless control. This means that you can skin it pretty much anyway that you want. If I were you, I'd take a copy of one of the existing themes[^] and play around with that to get the effect I wanted.
更多推荐
如何删除WPF MDI子窗体标题栏和边框部分?
发布评论