<UserControl x:Class="RadGridView_Clipboard.ClipboardOptions"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" xmlns:converters="clr-namespace:RadGridView_Clipboard.Converters"
    d:DesignHeight="100" d:DesignWidth="296">
    <UserControl.Resources>
        <converters:BoolToCopyModeConverter x:Key="CopyConverter"/>
        <converters:BoolToPasteModeConverter x:Key="PasteConverter"/>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="#9BFFFFFF">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100*" />
            <ColumnDefinition Width="177*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" Grid.Column="0" Padding="5, 1">Copy Mode:</TextBlock>
        <StackPanel Grid.Row="1" Grid.Column="0" Margin="2,0,0,0">
            <CheckBox IsChecked="{Binding ClipboardCopyMode, Converter={StaticResource CopyConverter}, ConverterParameter=2, Mode=TwoWay}">Copy cells</CheckBox>
            <CheckBox IsChecked="{Binding ClipboardCopyMode, Converter={StaticResource CopyConverter}, ConverterParameter=4, Mode=TwoWay}">Copy header</CheckBox>
            <CheckBox IsChecked="{Binding ClipboardCopyMode, Converter={StaticResource CopyConverter}, ConverterParameter=8, Mode=TwoWay}">Copy footer</CheckBox>
        </StackPanel>
        <TextBlock Grid.Row="0" Grid.Column="1" Padding="5, 1">Paste Mode:</TextBlock>
        <StackPanel Grid.Row="1" Grid.Column="1">
            <CheckBox IsChecked="{Binding ClipboardPasteMode, Converter={StaticResource PasteConverter}, ConverterParameter=2, Mode=TwoWay}">Paste cells</CheckBox>
            <CheckBox IsChecked="{Binding ClipboardPasteMode, Converter={StaticResource PasteConverter}, ConverterParameter=8, Mode=TwoWay}">Skip first line</CheckBox>
            <CheckBox IsChecked="{Binding ClipboardPasteMode, Converter={StaticResource PasteConverter}, ConverterParameter=16, Mode=TwoWay}">Skip last line</CheckBox>
            <CheckBox IsChecked="{Binding ClipboardPasteMode, Converter={StaticResource PasteConverter}, ConverterParameter=4, Mode=TwoWay}">Overwrite with empty values</CheckBox>
        </StackPanel>
    </Grid>
</UserControl>
