<Page
    x:Class="ChartSamples.ChartDx"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:ChartSamples.Samples.Performance"
    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="20" Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto" />
      <RowDefinition />
    </Grid.RowDefinitions>
    <UserControl Name="pnl">
      <StackPanel Orientation="Horizontal">
        <Button Name="btnNew" Content="New" Click="btnNew_Click" />
        <TextBlock Margin="24,0,0,0" VerticalAlignment="Center" Text="Number of points:" />
        <RadioButton Content="5000" IsChecked="True" Checked="RadioButton_Checked"/>
        <RadioButton Content="50000" Checked="RadioButton_Checked"/>
        <RadioButton Content="500000" Checked="RadioButton_Checked"/>
      </StackPanel>
    </UserControl>
    <c1:C1Chart Name="chart" Grid.Row="1" />
    <TextBlock Name="tbCalc" Grid.Row="1" FontSize="50" HorizontalAlignment="Center" 
               VerticalAlignment="Center" Text="Calculating..." Visibility="Collapsed" />
  </Grid>
</Page>