title: how to set a property of a static resource via a binding
body: <p>In the XAML fragment below, ItemsSource is set correctly for "testGrid" but for "testGridResource" it is null.  How do I set the ItemsSource of the grid defined as a resource via a binding?  More generally,  how do I set a property of an object defined as a static resource via a binding (I am only using datagrid as an example in my app I am using other objects)?</p>
  
  <pre><code>&lt;Window x:Class="StackedBarTest.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:ig="http://schemas.infragistics.com/xaml"
      Title="MainWindow" Height="350" Width="525" x:Name="root"&gt;
  &lt;Window.Resources&gt;
      &lt;DataGrid x:Key="testGridResource" ItemsSource="{Binding LoadStatistics, ElementName=root}"&gt;&lt;/DataGrid&gt;
  &lt;/Window.Resources&gt;
  
  &lt;Grid x:Name="LayoutRoot"&gt;
      &lt;DataGrid x:Name="testGrid" ItemsSource="{Binding LoadStatistics, ElementName=root}"&gt;&lt;/DataGrid&gt;
  </code></pre>