title: WPF: Change FontSize of ComboBox without knowing items
body: <p>I want to set the <code>FontSize</code> for some <code>ComboBox</code>es in wpf. But the only solution I found, is to set the <code>FontSize</code> of the particular <code>ComboBoxItem</code>s. But the items are dynamically added (so I could listen on <code>ItemsChanged</code> and set the style each time, but that is very ugly).
  Is there a way to set the <code>FontSize</code> for all items of a <code>ComboBox</code> generally?</p>
  
  <p><strong>EDIT1:</strong> The <code>ComboBox</code>es themselves are also dynamically added in code.</p>
  
  <p><strong>EDIT2:</strong> Following your answers it must be something like this:</p>
  
  <pre><code>&lt;Style TargetType="ComboBox" x:Key="MyComboBox""&gt;
      &lt;Setter Property="ItemContainerStyle" Value="{DynamicResource MyComboItemStyle}"/&gt;
  &lt;/Style&gt;
  &lt;Style x:Key="MyComboItemStyle" TargetType="{x:Type ComboBoxItem}"&gt;
      &lt;Setter Property="FontSize" Value="14"/&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>But it also has no effect!</p>
  
  <p><strong>EDIT3:</strong> Here's how I add the Items:</p>
  
  <pre><code>string[] strEnums = //Some dynamic magic;
  foreach (string str in strEnums)
  {
      (input as ComboBox).Items.Add(strEnum);
  }
  </code></pre>
  
  <p><strong>EDIT4:</strong> And here's the initialization of the combobox:</p>
  
  <pre><code>input = new ComboBox();
  input.SetResourceReference(ComboBox.StyleProperty, "MyComboBox");
  </code></pre>
  
  <p>That's all!</p>