daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <Style x:Key="Custom.ToggleSwitch.Win10"
  2.        BasedOn="{StaticResource MahApps.Metro.Styles.ToggleSwitch.Win10}"
  3.        TargetType="{x:Type Controls:ToggleSwitch}">
  4.     <Setter Property="Padding" Value="0 0 10 0" />
  5.     <Style.Triggers>
  6.         <Trigger Property="ContentDirection" Value="RightToLeft">
  7.             <Setter Property="Padding" Value="10 0 0 0" />
  8.         </Trigger>
  9.     </Style.Triggers>
  10. </Style>
  11.      
  12. BasedOn="{StaticResource MahApps.Metro.Styles.ToggleSwitch.Win10}"
  13.      
  14. <Window.Resources>
  15.     <ResourceDictionary>
  16.         <ResourceDictionary.MergedDictionaries>
  17.             <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.ToggleSwitch.xaml" />
  18.         </ResourceDictionary.MergedDictionaries>
  19.         <Style x:Key="Custom.ToggleSwitch.Win10"
  20.                BasedOn="{StaticResource MahApps.Metro.Styles.ToggleSwitch.Win10}"
  21.                 TargetType="{x:Type Controls:ToggleSwitch}">
  22.             <Setter Property="Padding" Value="0 0 10 0" />
  23.             <Style.Triggers>
  24.                 <Trigger Property="ContentDirection" Value="RightToLeft">
  25.                     <Setter Property="Padding" Value="10 0 0 0" />
  26.                 </Trigger>
  27.             </Style.Triggers>
  28.         </Style>
  29.     </ResourceDictionary>
  30. </Window.Resources>
  31.      
  32. <Controls:ToggleSwitch Style="{StaticResource MahApps.Metro.Styles.ToggleSwitch.Win10}" />
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top