TabControl-无法删除右边框和下边框? [英] TabControl - can't remove right and bottom border?

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

问题描述

似乎WPF TabControl具有"2nd"标记.边框(右侧和底部),无法以任何方式删除.

设置BorderThickness = 0,0,0,0仍在控件的右侧和底部保留两行.这些可以删除吗?我似乎找不到任何方法来访问它们,删除它们甚至更改其颜色.

Setting the BorderThickness=0,0,0,0 still leaves two lines on the right and bottom of the control.  Can these be removed?  I can't seem to find any way to access them, remove them, or even change their color.

推荐答案

您好 罗布·辛科夫

1:使用snoop.exe检查tabcontorl,以查看要修改的边框

1: use snoop.exe to check the tabcontorl, to see the which border you want to modifed

2:使用virtualtreehelper类获取重塑边框的参照,

2: use virtualtreehelper class to get the referecnce of respoding border,

3:做任何你想做的事

3: do whatever you want

谢谢

Alex


这篇关于TabControl-无法删除右边框和下边框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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