XAML WPF Vertical row scroll bar instead of group by group when grouping

What I want to do is scroll through the lines, not a group by group, when my items in the list are displayed grouped, and I press the up / up arrow button on the vertical scroll bar.

+4
source share
1 answer

I had the same problem and I found this post to find out if there is an answer. I finally found a solution to the problem. I wrote my own ControlTemplate for the ListView control, and I did not add the following trigger:

<Trigger Property="IsGrouping" Value="true"> <Setter Property="ScrollViewer.CanContentScroll" Value="false"/> </Trigger> 

So, if you set the ScrolLViewer.CanContentScroll property to false, it will work like a charm. Seems counter-intuitive, but it worked for me. If you post more code, we may be able to help you.

+5
source

Source: https://habr.com/ru/post/1302057/


All Articles