TabControl 无边框 wpf (XP) [英] TabControl without border wpf (XP)

查看:52
本文介绍了TabControl 无边框 wpf (XP)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 WPF 中设置 TabControl 样式时遇到视觉问题.因此,即使我将选项卡控件的边框设置为 0px 和透明,右侧和底部边框上仍然有一条非常细的线.

I'm experiencing a visual issue with styling a TabControl in WPF. So even if I set the border of the tab control to be 0px and transparent there is still a very thin line on the right and bottom borders.

我没有找到可以解决这个问题的属性,所以也许有人遇到了同样的问题并且可以分享它.

I didn't manage to find the property which would resolve that, so maybe someone experienced the same issue and could share it.

提前致谢,
鲍里斯

Thanks in advance,
Boris

推荐答案

您确定它是边框的一部分而不是 DropShadowEffect 吗?

Are you sure its part of the border and not the DropShadowEffect?

您必须覆盖 ControlTemplate 才能完全摆脱边框.这是一个 MSDN 示例.

You'll have to override the ControlTemplate to get rid of the border completely. Heres an MSDN Example.

这篇关于TabControl 无边框 wpf (XP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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