<UserControl x:Class="LabelSamples.SimpleArrangerSample"
             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" />
    </StackPanel>

    <c1chart:C1Chart x:Name="chart" ChartType="Line" Grid.Row="1" />

    <StackPanel Grid.Row="2" Orientation="Horizontal">
      <TextBlock Margin="8,0">
        <Run Text="Ctrl+Click on plot to add custom label with fixed position by data coordinates." />
        <LineBreak />
        <Run Text="The label text can be dragged by left mouse button." />
      </TextBlock>
    </StackPanel>

  </Grid>
</UserControl>
