<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="ChartSamples.AggregateCategoryAxis" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c1="clr-namespace:C1.WPF;assembly=C1.WPF.4" xmlns:c1chart="clr-namespace:C1.WPF.C1Chart;assembly=C1.WPF.C1Chart.4" xmlns:local="clr-namespace:ChartSamples">
    <UserControl.Resources>
        <DataTemplate x:Key="lbl">
            <StackPanel>
                <TextBlock Text="{Binding DataObject.Name, StringFormat=Category: {0}}" />
                <TextBlock Text="{Binding Value, StringFormat=Value: {0}}" />
            </StackPanel>
        </DataTemplate>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot">
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition />
    </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Margin="2, 2, 2, 10">
            <Button Content="New Data" Margin="2" HorizontalAlignment="Left" Width="100" Click="Button_Click" />
            <CheckBox Name="chkGrouping" Content="Grouping" IsChecked="True" Checked="CheckBox_Checked" Unchecked="CheckBox_Checked" Margin="10 2" VerticalAlignment="Center" />
        </StackPanel>
        <c1chart:C1Chart Grid.Row="1" Name="chart" >
      <c1chart:C1ChartLegend />
    </c1chart:C1Chart>
  </Grid>
</UserControl>