<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="ChartSamples.TrendLines" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:samples="clr-namespace:ChartSamples.Advanced" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml">
  
    <Grid x:Name="LayoutRoot">
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto" />
      <RowDefinition />
    </Grid.RowDefinitions>
      <StackPanel x:Name="sp" Margin="0 0 0 10">
      <ListBox x:Name="lb" SelectionChanged="lb_SelectionChanged" BorderThickness="0">
      </ListBox>
      <Grid Visibility="Collapsed" HorizontalAlignment="Stretch" Margin="0,10,0,0">
        <Button x:Name="btnAdd" HorizontalAlignment="Left" Width="50" Content="+" Click="btnAdd_Click" Height="22" />
        <Button x:Name="btnRemove" HorizontalAlignment="Right" Width="50" Content="-" Click="btnRemove_Click" IsEnabled="False" Height="22" />
      </Grid>
      </StackPanel>

    <c1:C1Chart x:Name="chart" Grid.Row="1">
      <c1:C1ChartLegend Position="Bottom" />
    </c1:C1Chart>

  </Grid>
</UserControl>