<UserControl
    x:Class="ChartSamples.Gallery"
    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" FontSize="16"
    d:DesignHeight="300"
    d:DesignWidth="400"
    HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
    HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
    <UserControl.Resources>
        <Style x:Key="style" TargetType="Path" >
            <Setter Property="Opacity" Value="0"/>
        </Style>
        <DataTemplate x:Key="label">
            <StackPanel>
                <TextBlock>
                    <Run Text="Value:"/>
                    <Run Text="{Binding Value}"/>
                </TextBlock>
                <TextBlock>
                    <Run Text="Series:"/>
                    <Run Text="{Binding Series}"/>
                </TextBlock>
            </StackPanel>
        </DataTemplate>
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="60" />
            <RowDefinition />
        </Grid.RowDefinitions>

        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="10 0 0 0">
            <TextBlock Margin="0,2,2,2"  Text="ChartType:"  VerticalAlignment="Center"/>
            <ComboBox Margin="2" Width="180" x:Name="cbChartType" SelectionChanged="cbChartType_SelectionChanged" 
                      Foreground="Black"/>
            <TextBlock Margin="10,2,2,2" Text="Palette:" VerticalAlignment="Center" />
            <ComboBox  Margin="2" Width="120" x:Name="cbPalette" SelectionChanged="cbPalette_SelectionChanged" 
                      Foreground="Black"/>
        </StackPanel>

        <c1:C1Chart Name="chart" Palette="Office" Grid.Row="1">
            <c1:C1ChartLegend />
        </c1:C1Chart>
    </Grid>
</UserControl>
