<UserControl
    x:Class="ChartSamples.PieSpin"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:ChartSamples.Samples.Interaction"
    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 />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>-->
        <c1:C1Chart x:Name="pieChart" ChartType="Pie" Palette="Solstice" />

        <StackPanel Grid.Row="1" VerticalAlignment="Bottom" Margin="0 0 0 20">
            <Polygon Fill="#C0000000" Margin="0 -50 0 0" HorizontalAlignment="Center"
                    Points="0 50 20 0 40 50" Width="40" Height="50" />
            <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>
