title: How to bind property of one control to another?
body: <p>I have a WPF control (ControlA) which references another control (ControlB) like so:</p>
  
  <pre><code>&lt;Grid&gt;
      &lt;controls:ControlB x:Name="ControlB"  /&gt;         
      &lt;my:DataGrid 
          x:Name="dataGridBackup" 
          ItemsSource="{Binding}" 
          AutoGenerateColumns="False" &gt;
          &lt;my:DataGrid.Columns&gt;
              &lt;my:DataGridCheckBoxColumn 
                  Header="Connectable" 
                  Binding="{Binding Connectable}"  /&gt;
          &lt;/my:DataGrid.Columns&gt;
      &lt;/my:DataGrid&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>Now in ControlB I have a button and i want to bind the IsEnabled property to the Connectable column of my Grid on controlA.</p>
  
  <p>I can get it working when i have the controls on the same page but not in the aboce scenario. I tried with</p>
  
  <pre><code>&lt;Button 
      IsEnabled="{Binding ElementName=dataGridBackup, Path=SelectedItem.Connectable}"&gt;
  &lt;/Button&gt;
  </code></pre>