<UserControl
    x:Class="ChartSamples.AggregateChart"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:ChartSamples"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:c1="using:C1.Xaml.Chart"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">
    <UserControl.Resources>
        <local:LabelConverter x:Key="lcnv"/>
        <DataTemplate x:Key="label">
            <Image Width="48" Height="48" Stretch="None" 
                 Source="{Binding Converter={StaticResource lcnv},Path=DataObject}" />

        </DataTemplate>
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Border  Margin="10,0,0,10">
            <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                <TextBlock Text="Aggregate:" Margin="0 0 5 0" VerticalAlignment="Center"  />
                <ComboBox x:Name="cb" Width="140" />
            </StackPanel>
        </Border>
        <c1:C1Chart x:Name="chart" Grid.Row="1" />
    </Grid>
</UserControl>
