title: Oxyplot - WPF invalidate plotview
body: <p>I am using Oxyplot for my WPF app. I want to capture some data and after that I want to show them in graph.
  I have this code in XAML:</p>
  
  <pre><code>xmlns:oxy="http://oxyplot.org/wpf"
  
  
   &lt;Window.DataContext&gt;
          &lt;local:MainViewModel/&gt;
    &lt;/Window.DataContext&gt;
    &lt;oxy:PlotView Title="{Binding Title}" Margin="241,0,0,179" Name="Plot1" Grid.Column="2"&gt;
         &lt;oxy:PlotView.Series&gt;
              &lt;oxy:LineSeries ItemsSource="{Binding Points}"/&gt;
          &lt;/oxy:PlotView.Series&gt;
    &lt;/oxy:PlotView&gt;
  </code></pre>
  
  <p>And Class:</p>
  
  <pre><code>public class MainViewModel
  {
      /// &lt;summary&gt;
      /// 
      /// &lt;/summary&gt;
      /// 
      public MainViewModel()
      {
          this.Title = "Sin";
  
          this.Points = new List&lt;DataPoint&gt;();
  
          for (int i = 0; i &lt;= 800; i++)
          {
              double x = (Math.PI * i) / 400;
              double y = Math.Sin(x);
              DataPoint p = new DataPoint(x, y);
              Points.Add(p);
          }
          /*this.Points = new List&lt;DataPoint&gt;
           {
                                new DataPoint(0, 4),
                                new DataPoint(10, 13),
                                new DataPoint(20, 15),
                                new DataPoint(30, 16),
                                new DataPoint(40, 12),
                                new DataPoint(50, 12)
                            };*/
      }
  
      public string Title { get; private set; }
  
      public IList&lt;DataPoint&gt; Points { get; private set; }
  
      public void Second()
      {
          this.Points.Clear();
          this.Title = "Test";
  
          this.Points = new List&lt;DataPoint&gt;();
  
          for (int i = 0; i &lt;= 800; i++)
          {
              double x = (Math.PI * i) / 400;
              double y = Math.Cos(x);
              DataPoint p = new DataPoint(x, 0.5);
              Points.Add(p);
          }
      }
  
  }
  </code></pre>
  
  <p>Thing is, that I want after clicking button show plot from "Second()".
  It is performed by calling method Second() and after Plot1.InvalidatePlot(true), but it does nothing. 
  Where am I doing mistake, please help?
  Thanks</p>