User avatar
Topic Author
Posts: 15
Joined: 01 Apr 2020, 10:33

Remove Scrollbar / Scrollviewer animation

27 Jul 2021, 14:52

Hi there !

I'm using a scrollviewer in a project with the default Noesis's style (from DarkBlue) , and I'm facing an issue, there is a default animation on the control which makes it invisible at first, showing a thin line when hovering rapidly, and then when hovering for more than 500ms shows the full scrollbar.

Is it possible to completely disable this behaviour, keeping just the final look of the scrollbar ?

Thanks !
User avatar
Site Admin
Posts: 2538
Joined: 22 Dec 2011, 19:20

Re: Remove Scrollbar / Scrollviewer animation

02 Aug 2021, 13:15

Hi, the ScrollBar style defined by our theme can be found here: ... #L849-L971

You can create a local style for the ScrollBar in your application removing those animations and showing the buttons and bar by default.
    <ControlTemplate x:Key="MyHorizontalScrollBar">...</ControlTemplate>
    <ControlTemplate x:Key="MyVerticalScrollBar">...</ControlTemplate>
    <Style TargetType="ScrollBar">
        <Trigger Property="Orientation" Value="Horizontal">
          <Setter Property="Template" Value="{StaticResource MyHorizontalScrollBar}"/>
        <Trigger Property="Orientation" Value="Vertical">
          <Setter Property="Template" Value="{StaticResource MyVerticalScrollBar}"/>

Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot] and 1 guest