title: Binding Combobox ItemsSource to the StaticResource in the DataTemplate?
body: <p>I have a <code>combobox</code> where I want to display several objects and have <code>enum</code> values returned. Random number of the <code>combobox</code> is generated in a view according to the external data. The <code>combobox</code> works as expected, but after I open any of them and then another, then the one I opened for the first time, then the items in the first one are not accessible.(The items are still present but the <code>dropdown</code> menu is empty). </p>
  
  <p>To be clear I put my actions here step by step:</p>
  
  <ol>
  <li>I open <code>ComboBox1</code>. I can see all items.</li>
  <li>I open <code>ComboBox2</code>. I can see all items.</li>
  <li>I try to open <code>ComboBox1</code>. There are no items in it´s dropdown menu.</li>
  <li>I open <code>ComboBox3</code>. I can see all items.</li>
  <li>All items are gone from both - <code>ComboBox1</code> and <code>ComboBox2</code>. </li>
  </ol>
  
  <p>I guess that the problem is caused by broken path to the <code>ItemsSource</code>, but I could not figure out how to avoid it.</p>
  
  <pre><code>&lt;DataTemplate x:Key="CustomizedComboBox"&gt;
  &lt;StackPanel Width="70" Margin="0,0,12,0"&gt;
    &lt;ComboBox 
        SelectedIndex="{Binding Path=Type, Mode=TwoWay, Converter={vm:SelectedItemConverter}}" 
        ItemsSource="{StaticResource IconsAndLabelsArray}" 
        MinHeight="50"/&gt;
    &lt;/ComboBox&gt;
  &lt;/StackPanel&gt;
  </code></pre>
  
  <p></p>
  
  <p><code>IconsAndLabelsArray</code>:</p>
  
  <pre><code>&lt;x:Array x:Key="IconsAndLabelsArray" Type="{x:Type StackPanel}" &gt;
      &lt;StackPanel Orientation="Horizontal"&gt;
        &lt;Image Height="42"
               VerticalAlignment="Top"
               Source="/ProjectName;image1.png"
               Stretch="Uniform" /&gt;
        &lt;Label VerticalAlignment="Center" Content="Image1 Label" /&gt;
      &lt;/StackPanel&gt;
      &lt;StackPanel Orientation="Horizontal"&gt;
        &lt;Image Height="42"
               VerticalAlignment="Top"
               Source="/ProjectName;image2.png"
               Stretch="Uniform" /&gt;
        &lt;Label VerticalAlignment="Center" Content="Image2 Label" /&gt;
      &lt;/StackPanel&gt;       
  </code></pre>
  
  <p></p>