I have a <ListBox>
item with a white background, I want to change the scroll-bars color so that they can be visible when the user scrolls the items.
How can I achieve this?
I have a <ListBox>
item with a white background, I want to change the scroll-bars color so that they can be visible when the user scrolls the items.
How can I achieve this?
You can change the
VisualState
of theScrolling
state. You want to edit the ListBox'sScrollViewer's
VerticalScrollBar template. For example, this style is 100% opacity and red:and the
ListBox's
style (which uses the above VerticalScrollBar template) is like this:You can use
Expression Blend
to craft the XAML as it's much more efficient.Override the template for scrollviewer.