<UserControl
    x:Class="SalesDashboard2015.SalesByCategory"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:c1="using:C1.Xaml.Chart"
    xmlns:local="using:SalesDashboard2015"
    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" Loaded="UserControl_Loaded">

    <Grid Background="Black">
        <Grid Margin="5">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <TextBlock Text="{Binding Category_Text,Source={StaticResource SalesDashboardLocalization}}" Style="{StaticResource PageSubheaderTextStyle}"/>
            <c1:C1FlexPie x:Name="flexPie" ToolTip="{x:Null}" StartAngle="0" LegendPosition="Bottom" Palette="Modern" Grid.Row="1" Binding="TotalSale" BindingName="CategoryName" SelectedItemOffset="0.2" InnerRadius="0.3" SelectionMode="Point">
                <c1:C1FlexPie.DataLabel>
                    <c1:PieDataLabel x:Name="pieDataLabel" Position="Inside"/>
                </c1:C1FlexPie.DataLabel>
            </c1:C1FlexPie>
        </Grid>
    </Grid>
</UserControl>
