如何使WPF DataGrid VerticalScrollBar始终可见?
您是否知道如何使 WPF DataGrid
VerticalScrollBar
始终可见,即使没有数据可显示而不将 DataGrid
对象插入 滚动查看器
?
Do you knows how to make the WPF DataGrid
VerticalScrollBar
always visible, even if there is no data to display without putting DataGrid
object instid a ScrollViewer
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该能够设置 ScrollViewer.VerticalScrollBarVisibility< /a> 附加属性如下:
You should be able to set the ScrollViewer.VerticalScrollBarVisibility attached property like so: