如何删除WPF MDI子窗体标题栏和边框部分?

编程入门 行业动态 更新时间:2024-10-28 14:26:57
本文介绍了如何删除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子窗体标题栏和边框部分?

本文发布于:2023-11-10 01:29:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1573986.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:窗体   边框   标题栏   WPF   MDI

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!