title: Overriding background color of textbox WPF
body: <p>I want to change the background of a textbox using a style(in WPF).But text box is already based on a style.So when i give background it setter it is not overridding original style.Below is the code i am trying to work:</p>
  
  <pre><code>&lt;TextBox text="value"&gt;  
  &lt;TextBox.Style&gt;
    &lt;Style TargetType="{x:Type TextBox}"  BasedOn="{StaticResource {x:Type TextBox}}"&gt;
       &lt;Style.Triggers&gt;
        &lt;MultiDataTrigger&gt;
           &lt;MultiDataTrigger.Conditions&gt;
            &lt;Condition Binding="{Binding Path=path}" Value="False"/&gt;
           &lt;/MultiDataTrigger.Conditions&gt;
          &lt;MultiDataTrigger.Setters&gt;
           &lt;Setter Property="ForeGround" Value="Red"/&gt;
           &lt;Setter Property="Background" Value="LightGray"/&gt;
          &lt;/MultiDataTrigger.Setters&gt;
        &lt;/MultiDataTrigger&gt;
       &lt;/Style.Trigger&gt;
      &lt;/Style&gt;
  </code></pre>
  
  <p>The code is chnaging the foreground to Red but there is no chnage in background of textbox.</p>
  
  <p>How can i override the backgorund color.I need to do this in WPF.</p>