Skip to content

Commit

Permalink
Update ListViewSample2_xaml.txt (microsoft#980)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregwoo-microsoft authored Jun 1, 2022
1 parent 4688b44 commit 55af91f
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ code-behind. See the C# code below for more details on how to create/bind to a g
<ItemsStackPanel AreStickyGroupHeadersEnabled="$(AreStickyGroupHeadersEnabled)"/>
</ItemsPanelTemplate>
</ListView.ItemsPanel>

<ListView.GroupStyle>
<GroupStyle >
<GroupStyle.HeaderTemplate>
<DataTemplate x:DataType="local1:GroupInfoList">
<Border AutomationProperties.Name="{x:Bind Key}">
<TextBlock Text="{x:Bind Key}" Style="{ThemeResource TitleTextBlockStyle}"/>
</Border>
</DataTemplate>
</GroupStyle.HeaderTemplate>
</GroupStyle>
</ListView.GroupStyle>
</ListView>

<!-- Data template used is same as above examples. -->

0 comments on commit 55af91f

Please sign in to comment.