<UserControl
    x:Class="FlexGridSamples.IncrementalLoading"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:FlexGridSamples"
    xmlns:c1="using:C1.Xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">
    
    <Grid>
        <Grid.Resources>
            <CollectionViewSource x:Name="employeesCVS"/>
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <TextBlock x:Name="tbCollectionChangeStatus"/>
        <!--<c1:C1FlexGrid x:Name="fgEmployees" ItemsSource="{Binding Source={StaticResource employeesCVS}}" Grid.Row="1" AutoGenerateColumns="False" Height="200">
            <c1:C1FlexGrid.Columns>
                <c1:Column Binding="{Binding Name}" />
                <c1:Column Binding="{Binding Organization}" />
            </c1:C1FlexGrid.Columns>
        </c1:C1FlexGrid>-->
        <c1:C1ListBox ItemsSource="{Binding Source={StaticResource employeesCVS}}" Grid.Row="1">
            <c1:C1ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel>
                        <TextBlock Style="{StaticResource BasicTextStyle}" HorizontalAlignment="Center">
                                    <Run Text="Name: " FontWeight="Bold"/>
                                    <Run Text="{Binding Name}"/>
                        </TextBlock>
                        <TextBlock Style="{StaticResource BasicTextStyle}" HorizontalAlignment="Center">
                                    <Run Text="Organization: " FontWeight="Bold"/>
                                    <Run Text="{Binding Organization}"/>
                        </TextBlock>
                    </StackPanel>
                </DataTemplate>
            </c1:C1ListBox.ItemTemplate>
        </c1:C1ListBox>
        <ListView x:Name="lvEmployees" ItemsSource="{Binding Source={StaticResource employeesCVS}}" Grid.Row="2">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <StackPanel>
                        <TextBlock Style="{StaticResource BasicTextStyle}" HorizontalAlignment="Center">
                                    <Run Text="Name: " FontWeight="Bold"/>
                                    <Run Text="{Binding Name}"/>
                        </TextBlock>
                        <TextBlock Style="{StaticResource BasicTextStyle}" HorizontalAlignment="Center">
                                    <Run Text="Organization: " FontWeight="Bold"/>
                                    <Run Text="{Binding Organization}"/>
                        </TextBlock>
                    </StackPanel>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
    </Grid>
</UserControl>
