<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="C1DataGrid_Demo2010.UltraPerformance" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml">
    <UserControl.Resources>
       
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>

        <ComboBox x:Name="cmbViewPortSize" HorizontalAlignment="Left" Height="20" Width="120" Padding="4 2 2 2" Margin="0 0 0 10" />
        
        <c1:C1DataGrid x:Name="grid" Grid.Row="1" ColumnWidth="100" IsReadOnly="true" CanUserAddRows="False" AutoGenerateColumns="False" Opacity="0.3">
            <c1:C1RowIndexHeaderBehavior.RowIndexHeaderBehavior>
                <c1:C1RowIndexHeaderBehavior InitialIndex="1" />
            </c1:C1RowIndexHeaderBehavior.RowIndexHeaderBehavior>
        </c1:C1DataGrid>

        <StackPanel x:Name="info" Grid.Row="1" Visibility="Collapsed" HorizontalAlignment="Center" VerticalAlignment="Center">
            <c1:C1ProgressBar x:Name="progress" Width="400" Height="20" />
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                <TextBlock HorizontalAlignment="Center" Text="Generating" Margin="0,4,4,0" />
                <TextBlock x:Name="txt" HorizontalAlignment="Center" Margin="0,4,0,0" />
            </StackPanel>
        </StackPanel>
        <Button x:Name="btn" Grid.Row="1" Width="140" Height="40" HorizontalAlignment="Center" Content="Generate" Click="Button_Click" />
    </Grid>
</UserControl>