title: WPF: Binding with two different lists
body: <p>I have a few Problems with databinding in WPF.</p>
  
  <p>I have a ListBox which has a binding to a BindingList.</p>
  
  <pre><code>&lt;ListBox x:Name="SampleListBox" ItemsSource="{Binding List1}" ItemContainerStyle="{StaticResource ListBoxStyle}" BorderThickness="0" SelectedIndex="0" Margin="0"&gt;
              &lt;ListBox.ItemTemplate&gt;
                  &lt;DataTemplate &gt;
                      &lt;Border x:Name="border" Width="185"&gt;
                          &lt;TextBlock Text="{Binding name}"/&gt;
                      &lt;/Border&gt;
                  &lt;/DataTemplate&gt;
              &lt;/ListBox.ItemTemplate&gt;
          &lt;/ListBox&gt;
  </code></pre>
  
  <p>Till here, everything works fine. Now I have a DataGrid which should be linked to another BindingList and display some strings of it. So for example, if the first item of the ListBox is selected, the grid should show data of the first item of the second list.
  I know, how it would work if both, the ListBox and the Grid get the data from the same list, but I have no idea, what to do, if this is not possible and there are two different lists.</p>