title: WPF Sparrow Chart
body: <p>Hello i've got a problem with generating a simple chart with Sparrow Toolkit in WPF. It's my XAML</p>
  
  <pre><code>&lt;Window x:Class="GeneratorWPF.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:sparrow="http://sparrowtoolkit.codeplex.com/wpf"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="Generator" Height="500" Width="1000" Loaded="button1_Click"&gt;
  &lt;Grid&gt;
      &lt;TextBox Height="23" HorizontalAlignment="Left" Margin="79,12,0,0" Name="textBox1" VerticalAlignment="Top" Width="120" /&gt;
      &lt;Label Content="Wariancja" Height="28" HorizontalAlignment="Left" Margin="12,12,0,0" Name="label1" VerticalAlignment="Top" /&gt;
      &lt;Label Content="Średnia" Height="28" HorizontalAlignment="Left" Margin="12,46,0,0" Name="label2" VerticalAlignment="Top" /&gt;
      &lt;Label Content="Przedział" Height="28" HorizontalAlignment="Left" Margin="12,80,0,0" Name="label3" VerticalAlignment="Top" /&gt;
      &lt;TextBox Height="23" HorizontalAlignment="Left" Margin="79,46,0,0" Name="textBox2" VerticalAlignment="Top" Width="120" /&gt;
      &lt;TextBox Height="23" HorizontalAlignment="Left" Margin="79,85,0,0" Name="textBox3" VerticalAlignment="Top" Width="120" /&gt;
      &lt;Button Content="Generuj" Height="23" HorizontalAlignment="Left" Margin="380,13,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" /&gt;
      &lt;sparrow:SparrowChart Theme="Grayscale" OverlayMode="SeriesFirst" Width="800" Height="300" VerticalAlignment="Bottom" Name="chart"&gt;
          &lt;sparrow:SparrowChart.Legend&gt;
              &lt;sparrow:Legend Header="Legend" LegendPosition="Outside" HorizontalAlignment="Right" VerticalAlignment="Top" ShowIcon="True"&gt;&lt;/sparrow:Legend&gt;
          &lt;/sparrow:SparrowChart.Legend&gt;
          &lt;sparrow:SparrowChart.XAxis&gt;
              &lt;sparrow:LinearXAxis MinValue="0" MaxValue="10" MajorTicksPosition="Cross"&gt;&lt;/sparrow:LinearXAxis&gt;
          &lt;/sparrow:SparrowChart.XAxis&gt;
          &lt;sparrow:SparrowChart.YAxis&gt;
              &lt;sparrow:LinearYAxis MinValue="0" MaxValue="10" MajorTicksPosition="Cross"&gt;&lt;/sparrow:LinearYAxis&gt;
          &lt;/sparrow:SparrowChart.YAxis&gt;
      &lt;/sparrow:SparrowChart&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <p>And .cs</p>
  
  <pre><code>private void button1_Click(object sender, RoutedEventArgs e)
  {
      //float wariancja = 0;
      //float srednia = 0;
      //int przedzial = 0;
      textBox1.Text = "asdasd";
      chart.Series["as"];
  
      var point = new Sparrow.Chart.ChartPoint();
      var asss = new Sparrow.Chart.AreaSeries()
      {
          Points = new Point()
          {
              X = 1,
              Y = 4
          },
      };
      var serie = new SeriesBase();
      chart.Series.Add();
  }
  </code></pre>
  
  <p>I'm trying to create object but nothings work. Can someone help me? Can i use only cs to generate chart? I need to use bind ? I'm start with WPF and don't really know about it too much</p>