[Wasm] ListView GroupStyle.HeaderTemplate not rendering #8614
-
Current behaviorGroup headers are not shown on Web Assembly. Expected behaviorThey should render the same as the do on Android... ...or UWP. How to reproduce it (as minimally and precisely as possible)I'm using this in my view... <Page.Resources>
<CollectionViewSource x:Name="FruitsCVS" Source="{x:Bind Fruits}" IsSourceGrouped="True" />
</Page.Resources>
<ListView ItemsSource="{x:Bind FruitsCVS.View}">
<ListView.GroupStyle>
<GroupStyle>
<GroupStyle.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding Key}" />
</DataTemplate>
</GroupStyle.HeaderTemplate>
</GroupStyle>
</ListView.GroupStyle>
</ListView> ...and this in my code-behind. public IEnumerable<IGrouping<string, string>> Fruits { get; }
= new[] { "Apple", "Apricot", "Banana" }
.GroupBy(f => f.Substring(0, 1))
.OrderBy(g => g.Key); |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Thanks for the report! This is actually an issue tracked here: #234. @dr1rrb may have some more information to provide here as a workaround using |
Beta Was this translation helpful? Give feedback.
-
Same issue with GridView, which is more complex control than ListView so not sure using nested repeaters will do the job, any idea when this be fixed ? It works fine on Windows Apps Sdk target but not in Web Assembly |
Beta Was this translation helpful? Give feedback.
Thanks for the report! This is actually an issue tracked here: #234. @dr1rrb may have some more information to provide here as a workaround using
ItemsRepeater
.