<UserControl
    x:Class="StockPortfolio.MyTreasure"
    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"
   >

    <Grid Margin="0" Background="#FFF3F3F3">
        <Grid Margin="5">
            <Grid.Resources>
                <Style TargetType="TextBlock">
                    <Setter Property="Foreground" Value="#FF5D5D5D"/>
                </Style>
            </Grid.Resources>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <StackPanel Orientation="Vertical">
                <TextBlock FontSize="18" Text="Balance"/>
                <TextBlock x:Name="Balance" FontSize="14" FontFamily="Segoe WP" FontWeight="Light" Margin="0 -5 0 10"/>
            </StackPanel>
            <Grid Grid.Row="1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="30" />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Grid  Grid.Row="1">
                    <c1:C1Chart Name="chart" Palette="Metro"  Width="340" Height="340" Visibility="Collapsed"/>
                </Grid>

                <StackPanel VerticalAlignment="Top" Margin="0,0,0,0" x:Name="panelLabel" Visibility="Collapsed">
                    <Polygon Fill="#C0000000" Margin="0 -4 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" BorderThickness="0">
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                            <TextBlock x:Name="txtName" FontSize="18" Foreground="White"/>
                            <TextBlock Text=": " FontSize="18" Foreground="White"/>
                            <TextBlock x:Name="txtPopulation" Foreground="White" FontSize="18"/>
                        </StackPanel>
                    </Border>
                </StackPanel>
            </Grid>
        </Grid>
    </Grid>

</UserControl>
