<UserControl x:Class="LabelSamples.OptimalArrangerSample"
             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" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" 
             xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
             xmlns:c1chart="http://schemas.componentone.com/winfx/2006/xaml">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <StackPanel Orientation="Horizontal">
            <Button x:Name="btnNew" Content="New data" Click="btnNew_Click" />
      <CheckBox Margin="8,2" VerticalAlignment="Center" x:Name="cbHideOutside" Content="Hide labels outside border" />
    </StackPanel>
        
        <c1chart:C1Chart x:Name="chart" ChartType="Line" Grid.Row="1" />
        
        <StackPanel Grid.Row="2" Orientation="Horizontal">
            <TextBlock Text="Click on plot area to add label attached by data coordinates." />
        </StackPanel>
    </Grid>
</UserControl>
