title: WPF ToggleSwitch: how to add Win 10 style
body: <p>I found this style <a href="https://www.bountysource.com/issues/40186310-increase-win10-toggleswitch-default-margins" rel="nofollow noreferrer">here</a> and add it into my <code>Window.Resources</code>:</p>
  
  <pre><code>&lt;Style x:Key="Custom.ToggleSwitch.Win10"
         BasedOn="{StaticResource MahApps.Metro.Styles.ToggleSwitch.Win10}"
         TargetType="{x:Type Controls:ToggleSwitch}"&gt;
      &lt;Setter Property="Padding" Value="0 0 10 0" /&gt;
      &lt;Style.Triggers&gt;
          &lt;Trigger Property="ContentDirection" Value="RightToLeft"&gt;
              &lt;Setter Property="Padding" Value="10 0 0 0" /&gt;
          &lt;/Trigger&gt;
      &lt;/Style.Triggers&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>The problem is that this line:</p>
  
  <pre><code>BasedOn="{StaticResource MahApps.Metro.Styles.ToggleSwitch.Win10}" 
  </code></pre>
  
  <p>got error:</p>
  
  <blockquote>
    <p>Error 103 The resource "MahApps.Metro.Styles.ToggleSwitch.Win10" could
    not be resolved.</p>
  </blockquote>
  
  <p>Any suggestions ?</p>