开发者

WPF DataGrid Scrollbar resizes in funny ways

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜