[英]DataGrid and ScrollBar styling WPF
I'm creating DataGrid
style in WPF. 我正在WPF中创建
DataGrid
样式。 Now I have rounded corners in my DataGrid
, but when appears ScrollBar
, it looks not beautiful. 现在,我在
DataGrid
变成圆角,但是当出现ScrollBar
,它看起来并不漂亮。 DataGridHeader
corner is still rounded, and I can see space between corners of ScrollBar button and DataGridHeader. DataGridHeader
角仍然是圆形的,我可以看到ScrollBar按钮和DataGridHeader的角之间的空间。 Here is an image: 这是一张图片:
I need to show rounded corners only when DataGrid
hasn't ScrollBar
.In all other cases I need to show this: 我只需要在
DataGrid
没有 ScrollBar
时显示圆角。在所有其他情况下,我需要显示以下内容:
So how to remove dynamicaly that space on the first image? 那么如何动态地删除第一张图片上的那个空间呢?
样式滚动条,以便通过使用负的左边距值使其与网格重叠
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.