Skip to content

Commit

Permalink
[ToggleSwitch] Update MinWidth setter (#4960)
Browse files Browse the repository at this point in the history
* Update toggleswitch

* Remove faulty minus sign
  • Loading branch information
marcelwgn authored May 6, 2021
1 parent 867b250 commit ca46c90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev/CommonStyles/ToggleSwitch_themeresources.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
<Setter Property="ManipulationMode" Value="System,TranslateX" />
<Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" />
<Setter Property="MinWidth" Value="{StaticResource ToggleSwitchThemeMinWidth}"/>
<Setter Property="FocusVisualMargin" Value="-7,-3,-7,-3" />
<contract7Present:Setter Property="CornerRadius" Value="{StaticResource ControlCornerRadius}"/>
<Setter Property="Template">
Expand Down Expand Up @@ -557,7 +558,6 @@
AutomationProperties.AccessibilityView="Raw" />
<Grid
Grid.Row="1"
MinWidth="{StaticResource ToggleSwitchThemeMinWidth}"
HorizontalAlignment="Left"
VerticalAlignment="Top">

Expand Down
2 changes: 1 addition & 1 deletion dev/CommonStyles/ToggleSwitch_themeresources_v1.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
<Setter Property="ManipulationMode" Value="System,TranslateX" />
<Setter Property="MinWidth" Value="{StaticResource ToggleSwitchThemeMinWidth}"/>
<Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" />
<Setter Property="FocusVisualMargin" Value="-7,-3,-7,-3" />
<Setter Property="Template">
Expand Down Expand Up @@ -481,7 +482,6 @@
AutomationProperties.AccessibilityView="Raw" />
<Grid
Grid.Row="1"
MinWidth="{StaticResource ToggleSwitchThemeMinWidth}"
HorizontalAlignment="Left"
VerticalAlignment="Top">

Expand Down

0 comments on commit ca46c90

Please sign in to comment.