<ContentDialog
    x:Uid="InfoList_ContentDialog"
    x:Class="NixExampleWinUI.Views.InfoListContentDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:helpers="using:NixExampleWinUI.Helpers"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Style="{StaticResource DefaultContentDialogStyle}">

    <ListView Name="InfoListView"
              x:FieldModifier="public"
              SelectionMode="None">
        <ListView.ItemContainerTransitions>
            <!--Overrides transition animations-->
            <TransitionCollection/>
        </ListView.ItemContainerTransitions>
        <ListView.ItemContainerStyle>
            <Style TargetType="ListViewItem">
                <Setter Property="Padding" Value="0"/>
            </Style>
        </ListView.ItemContainerStyle>
        <ListView.ItemTemplate>
            <DataTemplate x:DataType="helpers:SimpleInfoItem">
                <StackPanel Orientation="Horizontal"
                            Height="64"
                            AutomationProperties.Name="{x:Bind Subtitle}">
                    <StackPanel Orientation="Vertical" 
                                    VerticalAlignment="Center">
                        <TextBlock Text="{x:Bind Title}"  
                                       Style="{ThemeResource BaseTextBlockStyle}" 
                                       Foreground="{ThemeResource SystemControlPageTextBaseHighBrush}" />
                        <TextBlock Text="{x:Bind Subtitle}" 
                                       Style="{ThemeResource BodyTextBlockStyle}" 
                                       Foreground="{ThemeResource SystemControlPageTextBaseMediumBrush}"/>
                    </StackPanel>
                </StackPanel>
            </DataTemplate>
        </ListView.ItemTemplate>
    </ListView>
</ContentDialog>
