<UserControl x:Class="ChartSamples.Parametric"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
    >
  <UserControl.Resources>
    <SolidColorBrush x:Key="CE_SampleForeground" Color="#FFF0F8FE"/>
<SolidColorBrush x:Key="CE_SampleBorder" Color="#FF8FB4CC"/>
<Style x:Key="CE_SampleText" TargetType="TextBlock">
        <Setter Property="VerticalAlignment" Value="Center" />
    	<Setter Property="TextWrapping" Value="Wrap" />
    	<Setter Property="Foreground" Value="#FFF0F8FE" />
    	<Setter Property="FontFamily" Value="Portable User Interface" />
    	<Setter Property="FontSize" Value="12" />
</Style>
<Style x:Key="CE_SampleChart" TargetType="c1:C1Chart">
    	<Setter Property="Foreground" Value="#FFF0F8FE" />
    	<Setter Property="Background" Value="#ff071D2E" />
    	<Setter Property="BorderBrush" Value="#FF8FB4CC" />
	<Setter Property="BorderThickness" Value="1" />
	<Setter Property="Padding" Value="10" />
</Style>
  </UserControl.Resources>
    <Grid x:Name="LayoutRoot">
    <Grid.RowDefinitions>
      <RowDefinition Height="60" />
      <RowDefinition />
    </Grid.RowDefinitions>

        <Grid VerticalAlignment="Center" Margin="4">
          <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="40"/>
            <ColumnDefinition Width="Auto" />
          </Grid.ColumnDefinitions>
          <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
          </Grid.RowDefinitions>
      <Border Grid.RowSpan="2" >
        <TextBlock Margin="4" FontSize="24" Text="{}{" VerticalAlignment="Center" Foreground="{StaticResource CE_SampleForeground}" />
      </Border>
          <TextBlock Text="x(t)=cos(" Grid.Column="1" VerticalAlignment="Center" Foreground="{StaticResource CE_SampleForeground}"/>
          <c1:C1NumericBox x:Name="xPar" Grid.Column="2" Value="5" ValueChanged="Par_ValueChanged" />
          <TextBlock Text="*t)" VerticalAlignment="Center" Grid.Column="3" Foreground="{StaticResource CE_SampleForeground}"/>

          <TextBlock Text="y(t)=sin(" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" Foreground="{StaticResource CE_SampleForeground}"/>
          <c1:C1NumericBox x:Name="yPar" Grid.Row="1" Grid.Column="2" Value="7" ValueChanged="Par_ValueChanged" />
          <TextBlock Text="*t)" Grid.Row="1" Grid.Column="3" VerticalAlignment="Center" Foreground="{StaticResource CE_SampleForeground}"/>
        </Grid>

     <c1:C1Chart x:Name="chart" Grid.Row="1" Style="{StaticResource CE_SampleChart}" />
  </Grid>
</UserControl>
