title: Disable Style in WPF XAML?
body: <p>Is there anyway to turn off a style programatically?</p>
  
  <p>As an example, I have a style that is linked to all textboxes</p>
  
  <pre><code>&lt;Style TargetType="{x:Type TextBox}"&gt;
  </code></pre>
  
  <p>I would like to add some code to actually stop the style elements being used, so basically reverting back to the default control style.</p>
  
  <p>I need a way to make a switch in my styles, so I can switch between Windows default style and my custom style through C# code.</p>
  
  <p>Is there anyway to do this?</p>
  
  <p>Thanks</p>
  
  <p><strong>Working Solution</strong></p>
  
  <p><a href="http://sa.ndeep.me/post/switching-between-themes-in-wpf" rel="noreferrer">Switching between themes in WPF</a></p>