<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="ChartSamples.Labels" mc:Ignorable="d" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" 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">
  <UserControl.Resources>
    <c1:DataPointConverter x:Key="fc" />
    <DataTemplate x:Key="lbl">
      <Border Background="#FFBABABA" BorderBrush="#FFA3A3A3" BorderThickness="1" Padding="3">
        <TextBlock FontSize="9" Margin="2" Foreground="White" Text="{Binding Converter={StaticResource fc}, ConverterParameter=Series:\{#SeriesLabel\}\{#NewLine\}Point:\{#PointIndex\}\{#NewLine\}Value:\{#Value\}}" />
      </Border>
    </DataTemplate>
  </UserControl.Resources>
	
  <Grid x:Name="LayoutRoot">
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto" />
      <RowDefinition />
    </Grid.RowDefinitions>
    <Border Margin="0 0 0 10">
      <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
        <TextBlock VerticalAlignment="Center" Margin="0 0 5 0" Text="View:" />
        <RadioButton x:Name="rbLabels" IsChecked="true" Content="Label" Checked="rbLabel_Checked" Margin="0 0 10 0" Padding="4,0,0,0" VerticalAlignment="Center" />
        <RadioButton x:Name="rbTooltips" Content="Tooltips" Checked="rbLabel_Checked" Margin="0 0 30 0" Padding="4,0,0,0" VerticalAlignment="Center" />
        <TextBlock VerticalAlignment="Center" Text="ChartType:" Margin="0 0 5 0" />
        <ComboBox Width="140" x:Name="cbChartType" SelectionChanged="cbChartType_SelectionChanged" VerticalAlignment="Center" />
      </StackPanel>
    </Border>
      <c1:C1Chart Grid.Row="1" x:Name="c1chart" ChartType="Column">
      <c1:C1Chart.Data>
        <c1:ChartData>
          <c1:DataSeries Label="s1" Values="3 5 7 4" PointLabelTemplate="{StaticResource lbl}" />
          <c1:DataSeries Label="s2" Values="1 2 3 8" PointLabelTemplate="{StaticResource lbl}" />
        </c1:ChartData>
      </c1:C1Chart.Data>
      <c1:C1ChartLegend x:Name="legend" Margin="24,8,8,8" />
    </c1:C1Chart>
    
    </Grid>
</UserControl>