Fix padding of unit converter when the current locale displays symbols on the left (#373)

This commit is contained in:
Rudy Huyn 2019-03-26 10:54:14 -07:00 committed by Stephanie Anderl
parent 74b78a67be
commit e9aea9237d

View File

@ -459,8 +459,8 @@
<VisualState x:Name="CurrencySymbolLeftState"/>
<VisualState x:Name="CurrencySymbolRightState">
<VisualState.Setters>
<Setter Target="Value1Container.Padding" Value="0,0,12,0"/>
<Setter Target="Value2Container.Padding" Value="0,0,12,0"/>
<Setter Target="CurrencySymbol1Block.Padding" Value="0,0,12,0"/>
<Setter Target="CurrencySymbol2Block.Padding" Value="0,0,12,0"/>
<Setter Target="CurrencySymbol1Block.(Grid.Column)" Value="2"/>
<Setter Target="CurrencySymbol2Block.(Grid.Column)" Value="2"/>
</VisualState.Setters>
@ -492,7 +492,6 @@
<Grid x:Name="Value1Container"
Grid.Row="1"
Grid.Column="1"
Padding="12,0,0,0"
HorizontalAlignment="Left"
Style="{ThemeResource ValueContainerStyle}"
FlowDirection="{x:Bind LayoutDirection}"
@ -504,6 +503,7 @@
</Grid.ColumnDefinitions>
<TextBlock x:Name="CurrencySymbol1Block"
Grid.Column="0"
Padding="12,0,0,0"
Style="{ThemeResource CurrencySymbolMediumStyle}"
AutomationProperties.AccessibilityView="Raw"
Text="{x:Bind Model.CurrencySymbol1, Mode=OneWay}"
@ -544,7 +544,6 @@
<Grid x:Name="Value2Container"
Grid.Row="3"
Grid.Column="1"
Padding="12,0,0,0"
HorizontalAlignment="Left"
Style="{ThemeResource ValueContainerStyle}"
FlowDirection="{x:Bind LayoutDirection}"
@ -556,6 +555,7 @@
</Grid.ColumnDefinitions>
<TextBlock x:Name="CurrencySymbol2Block"
Grid.Column="0"
Padding="12,0,0,0"
Style="{ThemeResource CurrencySymbolMediumStyle}"
AutomationProperties.AccessibilityView="Raw"
Text="{x:Bind Model.CurrencySymbol2, Mode=OneWay}"