<UserControl
    x:Class="ChartSamples.StackedPie"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:ChartSamples.Samples.Appearance"
    xmlns:c1="using:C1.Xaml.Chart"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">
    <UserControl.Resources>
        <DataTemplate x:Key="lbl">
            <Border Background="White" CornerRadius="2" BorderBrush="Black" BorderThickness="0.5">
                <TextBlock Foreground="Black" Margin="2" >
          <Run Text="{Binding Name}" />
          <Run Text="{Binding}" />
          <Run Text="%" />
                </TextBlock>
            </Border>
        </DataTemplate>
        <DataTemplate x:Key="lbl1">
            <Border c1:PlotElement.LabelAlignment="Auto" c1:PlotElement.LabelOffset="16,16" >
                <TextBlock FontSize="8" Text="{Binding DataObject.Version}"/>
            </Border>
        </DataTemplate>
    </UserControl.Resources>
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <TextBlock FontSize="20" TextAlignment="Center" Text="Browser usage statistics, April 2012" />
        <c1:C1Chart Name="chart" Grid.Row="1" />
    </Grid>
</UserControl>
