开发者

WPF DataGrid Scrollbar resizes in funny ways

开发者 https://www.devze.com 2023-03-17 20:30 出处:网络
I use a WPF DataGrid which contains various rows each of wh开发者_StackOverflow中文版ich can have a different height. When I scroll the grid, the scrollbar changes its size. I think this is because of

I use a WPF DataGrid which contains various rows each of wh开发者_StackOverflow中文版ich can have a different height. When I scroll the grid, the scrollbar changes its size. I think this is because of the different row-heights. Is there a way to fix this, so that the scrollbar doesn't change its size while scrolling?


I'm sure you probably resolved this by now but I had the same issue and added

  ScrollViewer.CanContentScroll="False"

to my DataGrid attributes in XAML

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号