<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="ChartSamples.Parametric" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c1chart="clr-namespace:C1.WPF.C1Chart;assembly=C1.WPF.C1Chart.4" xmlns:c1="clr-namespace:C1.WPF;assembly=C1.WPF.4">
    <UserControl.Resources>
        <Style TargetType="c1chart:C1Chart">
			<Setter Property="Foreground" Value="#666666" />
			<Setter Property="CustomPalette">
				<Setter.Value>
					<ResourceDictionary>
						<SolidColorBrush x:Key="0" Color="#16ABA9" />
						<SolidColorBrush x:Key="1" Color="#EB7A2A" />
						<SolidColorBrush x:Key="2" Color="#F2CA04" />
						<SolidColorBrush x:Key="3" Color="#DC5B20" />
						<SolidColorBrush x:Key="4" Color="#8EBC00" />
						<SolidColorBrush x:Key="5" Color="#25A0DA" />
						<SolidColorBrush x:Key="6" Color="#25A0DA" />
						<SolidColorBrush x:Key="7" Color="#309B46" />
						<SolidColorBrush x:Key="8" Color="#24C6D2" />
						<SolidColorBrush x:Key="9" Color="#8A8065" />
					</ResourceDictionary>
				</Setter.Value>
			</Setter>	       	
        </Style>
    </UserControl.Resources>
	<Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Border Margin="0 0 0 10">
      <StackPanel>
        <Grid>
          <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
          </Grid.ColumnDefinitions>
          <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
          </Grid.RowDefinitions>
          <TextBlock Text="{}{" Grid.RowSpan="2" VerticalAlignment="Center" FontSize="36" />
          <TextBlock Text="x(t)=cos(" Grid.Column="1" VerticalAlignment="Center" />
          <c1:C1NumericBox x:Name="xPar" Grid.Column="2" Value="5" Height="20" ValueChanged="Par_ValueChanged" Margin="4,0" Width="50" />
          <TextBlock Text="*t)" VerticalAlignment="Center" Grid.Column="3" />

          <TextBlock Text="y(t)=sin(" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" />
          <c1:C1NumericBox x:Name="yPar" Grid.Row="1" Grid.Column="2" Height="20" Value="7" ValueChanged="Par_ValueChanged" Margin="4,0" Width="50" />
          <TextBlock Text="*t)" Grid.Row="1" Grid.Column="3" VerticalAlignment="Center" />
        </Grid>
      </StackPanel>
	 </Border>

        <c1chart:C1Chart x:Name="chart" Grid.Row="1" />
    </Grid>
</UserControl>