<?xml version="1.0" encoding="utf-8"?>
<UserControl mc:Ignorable="d" x:Class="MainTestApplication.Selection" 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" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
	<Grid>
		<!-- styles used by controls in this app -->
		<Grid.Resources>           
			<Style x:Key="excelBlue" TargetType="c1:C1FlexGrid">
				<Setter Property="BorderBrush" Value="#FFA3AEB9" />
				<Setter Property="BorderThickness" Value="1" />
				<Setter Property="GridLinesVisibility" Value="All" />
				<Setter Property="ShowMarquee" Value="True" />
				<Setter Property="RowBackground" Value="Transparent" />
				<Setter Property="AlternatingRowBackground" Value="Transparent" />
				<Setter Property="CursorBackground" Value="Transparent" />
				<Setter Property="EditorBackground" Value="Transparent" />
				<Setter Property="TopLeftCellBackground" Value="#FFA9C4E9" />
				<Setter Property="RowHeaderBackground" Value="#FFE4ECF7" />
				<Setter Property="RowHeaderSelectedBackground" Value="#FFFFD58D" />
				<Setter Property="GridLinesBrush" Value="#FFD0D7E5" />
				<Setter Property="HeaderGridLinesBrush" Value="#FF9EB6CE" />
				<Setter Property="SelectionBackground" Value="#FFEAECF5" />
				<Setter Property="ColumnHeaderSelectedBackground">
					<Setter.Value>
						<LinearGradientBrush EndPoint="0,1">
							<GradientStop Color="#FFF8D79B" Offset="0" />
							<GradientStop Color="#FFF1C263" Offset="1" />
						</LinearGradientBrush>
					</Setter.Value>
				</Setter>
				<Setter Property="ColumnHeaderBackground">
					<Setter.Value>
						<LinearGradientBrush EndPoint="0,1">
							<GradientStop Color="#FFF6FAFB" Offset="0" />
							<GradientStop Color="#FFD5DDEA" Offset="1" />
						</LinearGradientBrush>
					</Setter.Value>
				</Setter>
			</Style>
		</Grid.Resources>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="*" />
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition />
			<ColumnDefinition Width="Auto" />
		</Grid.ColumnDefinitions>
		<StackPanel Grid.Column="1" Grid.Row="1" Margin="10,0,1,0">
			<StackPanel Orientation="Horizontal" Margin="0,0,0,10">
				<TextBlock Text="SelectionMode:" VerticalAlignment="Center" Width="90" />
				<ComboBox x:Name="_cmbSelectionMode" SelectedIndex="1" SelectionChanged="_cmbSelectionMode_SelectionChanged" Width="90">
					<ComboBoxItem Content="Cell" />
					<ComboBoxItem Content="CellRange" />
					<ComboBoxItem Content="Row" />
					<ComboBoxItem Content="RowRange" />
					<ComboBoxItem Content="ListBox" />
				</ComboBox>
			</StackPanel>
			<StackPanel Orientation="Horizontal">
				<TextBlock Text="Merge Cells:" VerticalAlignment="Center" Width="90" />
				<CheckBox x:Name="_chkAllowMergingSelMode" IsChecked="false" VerticalAlignment="Center" Click="_chkAllowMergingSelMode_Click" />
			</StackPanel>
		</StackPanel>
		<TextBlock x:Name="_lblSelState" Margin="0,0,0,10" />
		<c1:C1FlexGrid x:Name="_flexSelectionMode" Grid.Row="1" Style="{StaticResource excelBlue}" AllowMerging="All" MinColumnWidth="10" MaxColumnWidth="300" SelectionChanged="_flexSelectionMode_SelectionChanged" />
	</Grid>
</UserControl>