<UserControl x:Class="ControlExplorer.Controls.Sparkline.SparklineSample"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:c1="using:C1.Xaml.Sparkline"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             d:DesignHeight="300"
             d:DesignWidth="400"
             mc:Ignorable="d">
    <UserControl.Resources>
        <Style TargetType="TextBlock">
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="Margin" Value="30 0" />
            <Setter Property="FontSize" Value="16" />
        </Style>
    </UserControl.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>

        <TextBlock Text="SparklineType:" />
        <ComboBox x:Name="sparklineType"
                  Width="180"
                  Margin="0 0 50 0"
                  HorizontalAlignment="Right"
                  SelectionChanged="sparklineType_SelectionChanged" />


        <TextBlock Grid.Row="1" Text="Display DateAxis:" />
        <CheckBox x:Name="checkBox"
                  Grid.Row="1"
                  Width="180"
                  Margin="0 0 50 0"
                  HorizontalAlignment="Right"
                  Click="checkBox_Click"
                  Foreground="Black" />
        <Button Grid.Row="2"
                HorizontalAlignment="Center"
                Click="Button_Click"
                Content="New Data" />
        <Grid Grid.Row="3"
              Margin="20"
              Background="LightGray">
            <c1:C1Sparkline x:Name="sparkline" />
        </Grid>

    </Grid>
</UserControl>
