ModernWpf icon indicating copy to clipboard operation
ModernWpf copied to clipboard

DataGrid scrollbar (both) no hide to small

Open harrytrinh9 opened this issue 2 years ago • 1 comments

The scrollbar of datagrid is always show as big state. It not hide to small like other scroll control.

harrytrinh9 avatar Nov 14 '22 06:11 harrytrinh9

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.

xlsupport avatar Jan 04 '24 07:01 xlsupport