© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•13mo ago•
2 replies
WantToBeeMe

How do i restyle the scrollbar, avalonia ui

I tried so many things. But i just cant seem to change 1 little thing of the style.
For example i just tried to edit the thum to be rounded. And it just does nothing.
I even tried putting a lot of parents below like so
<Style Selector="ListBox /template/ ScrollViewer /template/ ScrollBar#PART_VerticalScrollBar /template/ Track Thumb Border">
        <Setter Property="CornerRadius" Value="8" />
    </Style>
<Style Selector="ListBox /template/ ScrollViewer /template/ ScrollBar#PART_VerticalScrollBar /template/ Track Thumb Border">
        <Setter Property="CornerRadius" Value="8" />
    </Style>

But nope
Littaraly everything i tried resulted in nothing. And i know i didnt just forget to merge it with the rest of the styles.
In fact, i wrote it in the exact same style sheet as some of the style that did work just so i woudnt have that problem

Anyways, i pressed F12 and look at the tree, thats where i derived these values from., Editing the values there works just fine.
I searched the internet but avalonia content is pretty slim.
I just need this radius to work, if thats the case then i can figure out the rest
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ How To Style ScrollBar Avalonia
C#CC# / help
2y ago
Errors in Avalonia.UI
C#CC# / help
2y ago
Avalonia UI what I need to learn?
C#CC# / help
16mo ago
Avalonia UI - binding in markup extension?
C#CC# / help
2y ago