ModernWpf
ModernWpf copied to clipboard
DataGrid scrollbar (both) no hide to small
The scrollbar of datagrid is always show as big state. It not hide to small like other scroll control.
I wanted to make my scrollbars smaller. And possibly rounded but I haven't got there yet...
No luck with global override <sys:Double x:Key="{x:Static SystemParameters.VerticalScrollBarWidthKey}"> But also no luck with setting <sys:Double x:Key="ScrollBarSize">
But then I found that in Styles\ScrollBar.xaml the template uses a StaticResource ref to ScrollBarSize..
Recommend:
The ScrollbarSize resource should reflect the System.ScrollBarWidth/Height
The Scrollbar template should use a DYNAMICresource to ScrollBarSize
Caveat: ScrollBarSize is also used for the window's gripper.