<UserControl x:Class="FlexGridSamples.ExcelStyleMerge"
    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"
    xmlns:c1="using:C1.Xaml.FlexGrid"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="700">

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>

        <StackPanel Orientation="Horizontal" Margin="0 0 0 20">
            <Button x:Name="_btnMerge" Content="Merge Selected Cells" Padding="6" Click="_btnMerge_Click" />
            <Button x:Name="_btnSplit" Content="Split Selected Cells" Padding="6" Click="_btnSplit_Click" />
        </StackPanel>

        <c1:C1FlexGrid x:Name="_flex" Grid.Row="1" ShowMarquee="True" BorderThickness="1" GridLinesVisibility="All"/>
    </Grid>
</UserControl>
