如何使WPF DataGrid滚动条也覆盖不可滚动区域?
我不确定这是否只是我的机器(WinXP SP3),因为我没有在其他人的屏幕截图中看到它。
在我看来,DataGrid 中的滚动条仅覆盖可滚动区域。这意味着,列和行标题区域以及右下角以背景颜色显示,这对我来说看起来很难看。如何使滚动条延伸到控件的边缘(就像更常规的控件一样)? DataGrid 中有为此的属性吗?
如果您没有更改 DataGrid 的背景颜色,您可能看不到它。我有一个屏幕截图此处来说明这个问题。
I'm not sure if this is just my machine (WinXP SP3), because I have not seen it in other people's screenshots.
It looks to me that the scrollbars in DataGrid only cover the scrollable area. That means, the column and row header areas and the bottom right corner are shown in background color, which looks ugly to me. How can I make the scrollbar to extend to the edge of the control (like more regular control)? Is there is property in DataGrid for this?
You may not see it if you didn't change the background color of the DataGrid. I have a screenshot here to illustrate this problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,经过一番挣扎,我自己弄清楚了。如果有人关心的话...将这种样式放入您的 App.xaml 中。
Okay, after some struggling, I figured it out myself. In case anybody cares...put this style into you App.xaml.