Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set a wide / "fat" vertical scroll bar? #410

Open
alexandrehtrb opened this issue Apr 6, 2024 · 0 comments
Open

How to set a wide / "fat" vertical scroll bar? #410

alexandrehtrb opened this issue Apr 6, 2024 · 0 comments

Comments

@alexandrehtrb
Copy link

Hello,

I am trying to set a "fat" (wide) vertical scroll bar on AvaloniaEdit TextEditor, but when there are both vertical and horizontal scrolls, only the horizontal is fat, the vertical is thin.

How to make it always "fat"?

Only vertical:

Pororoca_3d4v7xAHx7

Horizontal and vertical:

Pororoca_3psknBP11I

Video:

simplescreenrecorder3-2024-04-06_10.48.30.mp4

My Styles.xaml:

  <Style Selector="ScrollViewer">
    <Setter Property="AllowAutoHide" Value="False"/>
  </Style>

  <Style Selector="ScrollBar">
    <Setter Property="AllowAutoHide" Value="False"/>
  </Style>

  <Style Selector="AvaloniaEdit|TextEditor">
    <Setter Property="HorizontalScrollBarVisibility" Value="Auto"/>
    <Setter Property="VerticalScrollBarVisibility" Value="Visible"/>
  </Style>

  <Style Selector="AvaloniaEdit|TextEditor /template/ ScrollViewer#PART_ScrollViewer">
    <Setter Property="AllowAutoHide" Value="False"/>
  </Style>

Original discussion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant