benruehl / adonis-ui

Lightweight UI toolkit for WPF applications offering classic but enhanced windows visuals
https://benruehl.github.io/adonis-ui/
MIT License
1.71k stars 143 forks source link

ScrollBar - Usability improvements #55

Closed Swiftpaws closed 4 years ago

Swiftpaws commented 4 years ago

The thumb on the scrollbar currently has no min height/width set so it becomes very small once many items have been added.

Setting a min height/width should help - also I think increasing the width of the thumb itself should be natively possible.

benruehl commented 4 years ago

Thanks for pointing this out. An overhaul of the scrollbar style is already planned, so this fits in there very well.

The small size you are experiencing seems to be the result of WPF's default calculation. But it looks like there is a kind of hacky way to specify a mininum size which is explained here. In case you need a quick solution you can copy the scrollbar style of Adonis UI into a custom ResourceDictionary, modify the Track like the MSDN thread suggests and include it in your resources.

Swiftpaws commented 4 years ago

Thanks for the reply - As for the overhaul: I think you could get some inspiration from the scrollbar implementation in UWP

Mgamerz commented 4 years ago

Another thing that would be very useful is to change the foreground of the scrollbar buttons and thumb. I'm not sure what layer I'm on, but when I have a few controls layered on top of each other, I start to get comboboxes that look like this:

image

I've been digging around in the source - it's something in scrollbar.xaml, but I can't figure out how to override the layer colors, I can only do the base. This makes it almost appear like there is no scrollbar.