title: ComboBox ItemsSource binding within a DataTemplate
body: <p>I'm trying to bind a combobox to a list of items (ObservableCollection) on my viewmodel. If I use something like this on my view:</p>
  
  <pre><code>&lt;ComboBox ItemsSource="{Binding Path=Teams}" DisplayMemberPath="TeamName" /&gt;
  </code></pre>
  
  <p>everything is OK. But if I take that same combobox and use it as part of a datatemplate on another template used as the items template for a listbox, nothing shows up in the list. Pseudocode example:</p>
  
  <pre><code>&lt;DataTemplate x:Key="test"&gt;
    &lt;TextBlock Text="Team:" /&gt;
    &lt;ComboBox ItemsSource="{Binding Path=Teams}" DisplayMemberPath="TeamName" /&gt;
  &lt;/DataTemplate&gt;
  </code></pre>
  
  
  
  <pre><code>&lt;ListBox ItemsSource="GamesCV" ItemTemplate="{StaticResource test}" /&gt;
  </code></pre>
  
  <p>I thought maybe I needed to add a relative source so I tried that, but no luck. I also tried giving my UserControl a name and using that as the ElementName on my combobox binding. I can't imagine this is as hard as I'm making it. I'm probably missing something obvious. Can anyone help? I can give more specifics if necessary, I'm just pressed for time right now.</p>
  
  <p>Thanks, Dennis</p>