1: <GridView IsItemClickEnabled="True"
2: x:Name="gvList" IsEnabled="{Binding IsGridEnabled}"
3: SelectionMode="Single"
4: Margin="120,80,0,0" Grid.Row="2"
5: AutomationProperties.AutomationId="ItemGridView"
6: AutomationProperties.Name="Grouped Items"
7: SelectedItem="{Binding Selected}"
8: ScrollViewer.ZoomMode="Disabled"
9: ScrollViewer.IsHorizontalScrollChainingEnabled="False"
10: ScrollViewer.IsVerticalScrollChainingEnabled="False"
11: ScrollViewer.HorizontalScrollBarVisibility="Hidden" Padding="0" VerticalContentAlignment="Stretch"
12: >
13:
14: <GridView.Resources>
15: <ItemsPanelTemplate x:Key="ItemsPanelTemplateZoomIn">
16: <StackPanel Orientation="Horizontal" />
17: </ItemsPanelTemplate>
18: </GridView.Resources>
19:
20: <GridView.ItemsSource>
21: <Binding Source="{StaticResource MyViewSource}"/>
22: </GridView.ItemsSource>
23:
24: <GridView.ItemsPanel>
25: <StaticResource ResourceKey="ItemsPanelTemplateZoomIn"/>
26: </GridView.ItemsPanel>
27: <GridView.GroupStyle>
28: <GroupStyle>
29: <GroupStyle.ContainerStyle>
30: <Style TargetType="GroupItem">
31: <Setter Property="Template">
32: <Setter.Value>
33: <ControlTemplate TargetType="GroupItem">
34: <Grid Margin="0,0,40,0">
35: <Grid.RowDefinitions>
36: <RowDefinition Height="Auto"/>
37: <RowDefinition Height="*"/>
38: </Grid.RowDefinitions>
39: <ContentPresenter Content="{TemplateBinding Content}" Grid.Row="0"/>
40: <ItemsControl x:Name="ItemsControl2" ItemsSource="{Binding GroupItems}" Grid.Row="1"/>
41: </Grid>
42: </ControlTemplate>
43: </Setter.Value>
44: </Setter>
45: </Style>
46: </GroupStyle.ContainerStyle>
47: <GroupStyle.HeaderTemplate>
48: <DataTemplate>
49: <Grid Margin="0,0,24,16">
50: <TextBlock
51: AutomationProperties.Name="Group Title"
52: Text="{Binding Floor}"
53: Foreground="#FF474747" FontFamily="Segoe UI Semibold" Margin="0"/>
54: </Grid>
55: </DataTemplate>
56: </GroupStyle.HeaderTemplate>
57:
58: </GroupStyle>
59:
60: </GridView.GroupStyle>
61:
62: </GridView>