<UserControl x:Class="MainTestApplication.Grouping"
             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">
    <Grid Background="White">
        <Grid.Resources>
            <Style x:Key="gridStyle" TargetType="Control">
                <Setter Property="BorderBrush" Value="#FFA3AEB9"/>
                <Setter Property="BorderThickness" Value="1"/>
            </Style>
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
			<RowDefinition />
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition />
            <ColumnDefinition Width="Auto"/>
		</Grid.ColumnDefinitions>
		<StackPanel Orientation="Horizontal" Margin="0,0,0,10">
			<TextBlock Text=" Find Name:"  VerticalAlignment="Center" Margin="0,0,5,0"/>
			<TextBox x:Name="_txtFind"  Width="120" TextChanged="_txtFind_TextChanged"/>
		</StackPanel>
		<StackPanel Grid.Column="1" Grid.Row="1" Width="190" Margin="10,0,0,0">
			<CheckBox x:Name="_chkShowGroups" Content="Show Groups" IsChecked="true" VerticalAlignment="Center" Click="_chkShowGroups_Click" Margin="0,0,0,10" />
			<CheckBox x:Name="_chkGroupByInitial" Content="Group Countries by Initials" IsChecked="true" Click="_chkGroupByInitial_Click" VerticalAlignment="Center" Margin="0,0,0,10"/>
			<CheckBox x:Name="_chkAllowMerging" Content="Merge Cells" IsChecked="false" Click="_chkAllowMerging_Click" VerticalAlignment="Center" Margin="0,0,0,10"/>
			<CheckBox x:Name="_chkKeepCurrentVisible" Content="Keep current visible" Click="_chkKeepCurrentVisible_Click" VerticalAlignment="Center" Margin="0,0,0,10"/>
			<CheckBox x:Name="_chkFreezePanes" Content="Freeze Panes" Click="_chkFreezePanes_Click"  VerticalAlignment="Center" Margin="0,0,0,10"/>
		</StackPanel>
		<c1:C1FlexGrid x:Name="_flexGroup" Grid.Row="1"
			Style="{StaticResource gridStyle}"
			AllowMerging="All"
			MinColumnWidth="10"
			MaxColumnWidth="300" BorderThickness="1" />
	</Grid>
</UserControl>
