title: Bind combobox inside an itemscontrol
body: <p>I am trying to populate a combobox, which is part of an itemscontrol, with a list of items (ParentCredentials). The problem is that these ParentCredentials are at the same level of the items being binded with the itemscontrol. Not sure if this is clear but if you have a look at the view model it should make more sense</p>
  
  <p>This is my viewmodel: </p>
  
  <pre><code> public class AccessControlViewModel : INotifyPropertyChanged
      {
   public ObservableCollection&lt;LogonCredential&gt; Credentials 
          {...}
    public List&lt;string&gt; ParentCredentials
          {...}
  }
  </code></pre>
  
  <p>And i have the following XAML. </p>
  
  <pre><code>&lt;ItemsControl ItemsSource="{Binding AccessControl.Credentials}" HorizontalContentAlignment="Stretch"&gt;
         &lt;ItemsControl.ItemTemplate&gt;
         &lt;DataTemplate&gt;                              
               &lt;Grid  &gt;
                   &lt;Grid.ColumnDefinitions &gt;
                       &lt;ColumnDefinition Width="*" /&gt;
                       &lt;ColumnDefinition Width="*"/&gt;
                       &lt;ColumnDefinition Width="*"/&gt;
                   &lt;/Grid.ColumnDefinitions&gt;                                    
  
               &lt;Label  Grid.Column="0" Content="{Binding Path=DisplayName}"/&gt;  
               &lt;ComboBox Grid.Column="2" ItemsSource="{Binding Source={RelativeSource AncestorType={x:Type vm:ResourceViewModel}}, Path=AccessControl.ParentCredentials}"&gt;                                          
               &lt;/ComboBox&gt;
             ...
  </code></pre>
  
  <p>How can I make this binding? Also note that AccessControl is a part of ResourceViewModel class. </p>