<UserControl
    x:Class="ChartSamples.PieAnimation"
    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">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition />
        </Grid.RowDefinitions>
        
        <c1:C1Chart Name="chart" Palette="Flow" Grid.Row="1" Margin="0 10 0 0" />
        <StackPanel VerticalAlignment="Top" x:Name="panelLabel" Visibility="Collapsed">
            <Polygon Fill="#C0000000" Margin="0 0 0 -113" HorizontalAlignment="Center"
                     Points="0 50 20 0 40 50" Width="40" Height="50" RenderTransformOrigin="0.5,0.5" >
                <Polygon.RenderTransform>
                    <CompositeTransform Rotation="180"/>
                </Polygon.RenderTransform>
            </Polygon>
            <Border CornerRadius="10" Padding="20 4" Margin="0 0 0 -10" Background="#C0000000" Width="200">
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                    <TextBlock x:Name="txtName" FontSize="20" Foreground="White"/>
                    <TextBlock Text=": " FontSize="20" Foreground="White"/>
                    <TextBlock x:Name="txtPopulation" FontSize="20" Foreground="White"/>
                </StackPanel>
            </Border>
        </StackPanel>
    </Grid>
</UserControl>
