title: Check if DataGrid ItemSource is populated via binding or assignment
body: <p>Is there a way to find out (in code) if the ItemSource of the Datagrid was set via binding, or if there was an assignment?</p>
  
  <p>Binding:</p>
  
  <pre><code>&lt;DataGrid x:Name="MyGrid" ItemsSource="{Binding Foo}"/&gt;
  </code></pre>
  
  <p>Assignment:</p>
  
  <pre><code>&lt;DataGrid x:Name="MyGrid" /&gt;
  </code></pre>
  
  
  
  <pre><code>MyGrid.ItemsSource = new List&lt;int&gt; { 1, 2, 3 };
  </code></pre>