title: Binding static resource and observable collection
body: <p>I'm pretty new to WPF's data binding so try to keep things as simple as possible. :) I'm trying to bind a static resource and an observable collection together. They both are the same type.</p>
  
  <p>Here's my xaml:</p>
  
  <pre><code>&lt;Window x:Class="DataBindingAdapterTest.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          Title="MainWindow" Height="350" Width="525" xmlns:lcu="http://schemas.org/"&gt;
      &lt;Window.Resources&gt;
          &lt;lcu:DataPoints x:Key="jarppa"&gt;
              &lt;lcu:DataPoint X="0" Y="5"/&gt;
              &lt;lcu:DataPoint X="3" Y="20"/&gt;
              &lt;lcu:DataPoint X="6" Y="10"/&gt;
              &lt;lcu:DataPoint X="6" Y="10"/&gt;
          &lt;/lcu:DataPoints&gt;
      &lt;/Window.Resources&gt;
      &lt;Grid&gt;
          &lt;lcu:chart x:Name="chart1"/&gt;
          &lt;lcu:BindingAdapter Name="bindingAdapter1" Chart="{Binding ElementName=chart1}"&gt;    
              &lt;lcu:BindingAdapter.SeriesCollection&gt;
                  &lt;lcu:ChartSeries Points="{Binding Source={StaticResource jarppa}}"/&gt;
              &lt;/lcu:BindingAdapter.SeriesCollection&gt;
          &lt;/lcu:BindingAdapter&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>ChartSeries.Points (class name DataPoints) is ObservableCollection&lt; DataPoint> object and since "jarppa" is the same type I thought it would bind without trouble. Well, I was wrong...</p>
  
  <p>I would like to bind "jarppa" so I could test the chart I'm working on in VS2010 designer. I.e. it would render the data points on screen. BindingAdapter provides binding functionality to my chart (a temporary solution). I think Path property should be used in this case since I'm using Source but how can I set the Path to point the whole list of DataPoint objects...?</p>
  
  <p>How should I do this correctly? Thanks in advance.</p>