-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
bug πAn unexpected issue that highlights incorrect behaviorAn unexpected issue that highlights incorrect behaviorcontrols ποΈhelp wantedIssues identified as good community contribution opportunitiesIssues identified as good community contribution opportunities
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
vt-ksenthil, varunotelli, smahinfaliha, revathikannan, ranaprathap2 and 1 more
Metadata
Metadata
Assignees
Labels
bug πAn unexpected issue that highlights incorrect behaviorAn unexpected issue that highlights incorrect behaviorcontrols ποΈhelp wantedIssues identified as good community contribution opportunitiesIssues identified as good community contribution opportunities