Skip to content

Commit ca46c90

Browse files
authored
[ToggleSwitch] Update MinWidth setter (#4960)
* Update toggleswitch * Remove faulty minus sign
1 parent 867b250 commit ca46c90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dev/CommonStyles/ToggleSwitch_themeresources.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@
215215
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
216216
<Setter Property="ManipulationMode" Value="System,TranslateX" />
217217
<Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" />
218+
<Setter Property="MinWidth" Value="{StaticResource ToggleSwitchThemeMinWidth}"/>
218219
<Setter Property="FocusVisualMargin" Value="-7,-3,-7,-3" />
219220
<contract7Present:Setter Property="CornerRadius" Value="{StaticResource ControlCornerRadius}"/>
220221
<Setter Property="Template">
@@ -557,7 +558,6 @@
557558
AutomationProperties.AccessibilityView="Raw" />
558559
<Grid
559560
Grid.Row="1"
560-
MinWidth="{StaticResource ToggleSwitchThemeMinWidth}"
561561
HorizontalAlignment="Left"
562562
VerticalAlignment="Top">
563563

dev/CommonStyles/ToggleSwitch_themeresources_v1.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@
204204
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
205205
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
206206
<Setter Property="ManipulationMode" Value="System,TranslateX" />
207+
<Setter Property="MinWidth" Value="{StaticResource ToggleSwitchThemeMinWidth}"/>
207208
<Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" />
208209
<Setter Property="FocusVisualMargin" Value="-7,-3,-7,-3" />
209210
<Setter Property="Template">
@@ -481,7 +482,6 @@
481482
AutomationProperties.AccessibilityView="Raw" />
482483
<Grid
483484
Grid.Row="1"
484-
MinWidth="{StaticResource ToggleSwitchThemeMinWidth}"
485485
HorizontalAlignment="Left"
486486
VerticalAlignment="Top">
487487

0 commit comments

Comments
 (0)