<Page x:Class="FlexGrid101.SelectionModes"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" 
      mc:Ignorable="d" 
      d:DesignHeight="450" d:DesignWidth="800"
      Title="SelectionModes">

    <Grid Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        <ComboBox x:Name="selectionMode" SelectionChanged="selectionMode_SelectionChanged"/>
        <StackPanel Orientation="Horizontal" Grid.Row="1">
            <TextBlock Text="ShowMarquee" VerticalAlignment="Center" />
            <CheckBox Margin="5,0" x:Name="switchMarquee" IsChecked="{Binding ElementName=grid, Path=ShowMarquee, Mode=TwoWay}" VerticalAlignment="Center"/>
        </StackPanel>
        <TextBlock x:Name="lblSelection" Grid.Row="2"/>
        <c1:C1FlexGrid x:Name="grid" Grid.Row="3" HeadersVisibility="All" ShowMarquee="True" AllowResizing="Both" SelectionChanging="grid_SelectionChanging" SelectionChanged="grid_SelectionChanged"/>
    </Grid>
</Page>
