Fix padding of unit converter when the current locale displays symbols on the left (#373)
This commit is contained in:
parent
74b78a67be
commit
e9aea9237d
@ -459,8 +459,8 @@
|
|||||||
<VisualState x:Name="CurrencySymbolLeftState"/>
|
<VisualState x:Name="CurrencySymbolLeftState"/>
|
||||||
<VisualState x:Name="CurrencySymbolRightState">
|
<VisualState x:Name="CurrencySymbolRightState">
|
||||||
<VisualState.Setters>
|
<VisualState.Setters>
|
||||||
<Setter Target="Value1Container.Padding" Value="0,0,12,0"/>
|
<Setter Target="CurrencySymbol1Block.Padding" Value="0,0,12,0"/>
|
||||||
<Setter Target="Value2Container.Padding" Value="0,0,12,0"/>
|
<Setter Target="CurrencySymbol2Block.Padding" Value="0,0,12,0"/>
|
||||||
<Setter Target="CurrencySymbol1Block.(Grid.Column)" Value="2"/>
|
<Setter Target="CurrencySymbol1Block.(Grid.Column)" Value="2"/>
|
||||||
<Setter Target="CurrencySymbol2Block.(Grid.Column)" Value="2"/>
|
<Setter Target="CurrencySymbol2Block.(Grid.Column)" Value="2"/>
|
||||||
</VisualState.Setters>
|
</VisualState.Setters>
|
||||||
@ -492,7 +492,6 @@
|
|||||||
<Grid x:Name="Value1Container"
|
<Grid x:Name="Value1Container"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Padding="12,0,0,0"
|
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
Style="{ThemeResource ValueContainerStyle}"
|
Style="{ThemeResource ValueContainerStyle}"
|
||||||
FlowDirection="{x:Bind LayoutDirection}"
|
FlowDirection="{x:Bind LayoutDirection}"
|
||||||
@ -504,6 +503,7 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock x:Name="CurrencySymbol1Block"
|
<TextBlock x:Name="CurrencySymbol1Block"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
|
Padding="12,0,0,0"
|
||||||
Style="{ThemeResource CurrencySymbolMediumStyle}"
|
Style="{ThemeResource CurrencySymbolMediumStyle}"
|
||||||
AutomationProperties.AccessibilityView="Raw"
|
AutomationProperties.AccessibilityView="Raw"
|
||||||
Text="{x:Bind Model.CurrencySymbol1, Mode=OneWay}"
|
Text="{x:Bind Model.CurrencySymbol1, Mode=OneWay}"
|
||||||
@ -544,7 +544,6 @@
|
|||||||
<Grid x:Name="Value2Container"
|
<Grid x:Name="Value2Container"
|
||||||
Grid.Row="3"
|
Grid.Row="3"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Padding="12,0,0,0"
|
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
Style="{ThemeResource ValueContainerStyle}"
|
Style="{ThemeResource ValueContainerStyle}"
|
||||||
FlowDirection="{x:Bind LayoutDirection}"
|
FlowDirection="{x:Bind LayoutDirection}"
|
||||||
@ -556,6 +555,7 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock x:Name="CurrencySymbol2Block"
|
<TextBlock x:Name="CurrencySymbol2Block"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
|
Padding="12,0,0,0"
|
||||||
Style="{ThemeResource CurrencySymbolMediumStyle}"
|
Style="{ThemeResource CurrencySymbolMediumStyle}"
|
||||||
AutomationProperties.AccessibilityView="Raw"
|
AutomationProperties.AccessibilityView="Raw"
|
||||||
Text="{x:Bind Model.CurrencySymbol2, Mode=OneWay}"
|
Text="{x:Bind Model.CurrencySymbol2, Mode=OneWay}"
|
||||||
|
Loading…
Reference in New Issue
Block a user