The source code of scrollviewer feels not up to date #15829
-
What I want to achieve is to display a small scrollbar on the scrollviewer. Just like this: At the same time, I don't want the scrollbar to be enlarged like this when the mouse moves over it. So, I tried to find its source code to override this. And then I found this: However, it has no style about mouse over it that I don't know how to override it. I suspect this is not the latest source code of scrollviewer, or am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I think you have to take a look at ScrollBar instead of ScrollViewer. |
Beta Was this translation helpful? Give feedback.
-
You should be looking at Theme: Avalonia/src/Avalonia.Themes.Fluent/Controls/ScrollBar.xaml Lines 268 to 284 in 9e6d3cf Code to follow through several method calls until Avalonia/src/Avalonia.Controls/Primitives/ScrollBar.cs Lines 293 to 301 in f7bcb5f Not sure exactly what you want, but you may need to re-theme the |
Beta Was this translation helpful? Give feedback.
You should be looking at
ScrollBar.IsExpanded
.Theme:
Avalonia/src/Avalonia.Themes.Fluent/Controls/ScrollBar.xaml
Lines 268 to 284 in 9e6d3cf