title: WPF Change Background color of a Combobox
body: <p>In my WPF app I just want to change the background color of the Combo box. I don't mean the dropdown, I want is just whatever item is selected a background is set. 
  Like setting the background of a button - when the control is displayed on screen it should have LightYellow background. That's it. 
   I searched a lot on net, but everywhere could find solutions for drop down background colors. I tried applying SolidColorBrush and Style.Triggers to the TextBlock of Combobox, but no success as wanted. By adding SolidColorBrush lines, I got my dropdown background set, but that's not what I am looking for. My code is :</p>
  
  <pre><code>&lt;ComboBox ItemsSource="{Binding MtrCm}" SelectedValue="{Binding WellboreDiameter_Unit, Mode=TwoWay}" Grid.Row="1" Height="23" HorizontalAlignment="Right" Margin="0,26,249,0" x:Name="cboWellDiameter" VerticalAlignment="Top" Width="120"   Background="LightYellow"  &gt;
      &lt;ComboBox.Resources&gt;
          &lt;SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="Yellow" /&gt;
          &lt;SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Yellow" /&gt;
          &lt;SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Yellow" /&gt;
          &lt;Style TargetType="TextBlock"&gt;
              &lt;Style.Triggers&gt;
                  &lt;DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource AncestorType=ComboBoxItem}}" Value="True"&gt;
                      &lt;Setter Property="Background" Value="Red" /&gt;
                  &lt;/DataTrigger&gt;
              &lt;/Style.Triggers&gt;
          &lt;/Style&gt;
      &lt;/ComboBox.Resources&gt;
  &lt;/ComboBox&gt;
  </code></pre>
  
  <p>Can anyone help me set he background of the desired component that am looking for.</p>
  
  <p>Thanks</p>