This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Description When using ScrollHeader with Mode="Sticky" inside a ListView with grouped items, the groups' headers are displayed in front of the header.
Example
<ListView x:Name="lv" ItemsSource="{Binding Source={StaticResource cvs}}" SelectionMode="None">
<ListView.Header>
<controls:ScrollHeader Mode="Sticky" TargetListViewBase="{x:Bind lv,Mode=OneWay}">
<Grid Height="200">
<Grid.Background>
<SolidColorBrush Opacity="0.9" Color="Blue"/>
</Grid.Background>
<TextBlock Foreground="White" Text="header" FontSize="20" VerticalAlignment="Center"/>
</Grid>
</controls:ScrollHeader>
</ListView.Header>
<ListView.GroupStyle>
<GroupStyle>
<GroupStyle.HeaderTemplate>
<DataTemplate>
<Grid>
<TextBlock Text="{Binding Key}"/>
</Grid>
</DataTemplate>
</GroupStyle.HeaderTemplate>
</GroupStyle>
</ListView.GroupStyle>
</ListView>
Where cvs is a CollectionViewSource with IsSourceGrouped set to True.
Result
Reactions are currently unavailable
When using
ScrollHeaderwithMode="Sticky"inside a ListView with grouped items, the groups' headers are displayed in front of the header.Example
Where
cvsis aCollectionViewSourcewithIsSourceGroupedset toTrue.Result