title: How to bind the Selected Item to a Model with the Infragistics XamDataGrid?
body: <p>I have the following model:</p>
  
  <pre><code>public class Model : INotifyPropertyChanged 
  {
    public ObservableCollection&lt;ViewElement&gt; Elements { get; set; }
  
    public ViewElement CurrentElement { get; set; }
  }
  </code></pre>
  
  <p>And the following grid where the parent <code>DataContext</code> is the above model: </p>
  
  <pre><code>&lt;dg:XamDataGrid DataSource="{Binding Path=Elements}" /&gt;
  </code></pre>
  
  <p>I want to bind the <code>CurrentElement</code> property to the Selected Item of the Grid, similar to how I would in a <code>ListView</code>:</p>
  
  <pre><code>    &lt;ListView x:Name="playbackSteps"
            ItemsSource="{Binding Path=Elements}"
            SelectedItem="{Binding Path=CurrentElement}" /&gt;
  </code></pre>
  
  <p>How would you suggest I do this?</p>