<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="ChartExtended.Samples.TrendLines" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:samples="clr-namespace:ChartExtended.Samples" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml">

    <Grid x:Name="LayoutRoot">
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="230" />
      <ColumnDefinition />
    </Grid.ColumnDefinitions>
    <Border>
      <StackPanel x:Name="sp" Margin="5">
      <ListBox x:Name="lb" SelectionChanged="lb_SelectionChanged" Background="Transparent" Padding="0" />
      <Grid HorizontalAlignment="Stretch" Margin="0,4">
        <Button x:Name="btnAdd" HorizontalAlignment="Left" Width="50" Content="+" Click="btnAdd_Click" />
        <Button x:Name="btnRemove" HorizontalAlignment="Right" Width="50" Content="-" Click="btnRemove_Click" IsEnabled="False" />
      </Grid>
      </StackPanel>
    </Border>
    <Border Grid.Column="1">
      <c1:C1Chart x:Name="chart">
      <c1:C1ChartLegend Position="Bottom" />
    </c1:C1Chart>
    </Border>
  </Grid>
</UserControl>