Browse Source

Added a Style to define the margin on Entry controls on the SettingsView. Fixes #387

pull/380/head
David Britch 7 years ago
parent
commit
03e61fae9d
1 changed files with 23 additions and 9 deletions
  1. +23
    -9
      src/Mobile/eShopOnContainers/eShopOnContainers.Core/Views/SettingsView.xaml

+ 23
- 9
src/Mobile/eShopOnContainers/eShopOnContainers.Core/Views/SettingsView.xaml View File

@ -65,6 +65,20 @@
Value="True" />
</Style>
<Style x:Key="SettingsEntryStyle"
TargetType="{x:Type Entry}"
BasedOn="{StaticResource EntryStyle}">
<Setter Property="Margin"
Value="12, 0" />
</Style>
<Style x:Key="SettingsUwpEntryStyle"
TargetType="{x:Type Entry}"
BasedOn="{StaticResource UwpEntryStyle}">
<Setter Property="Margin"
Value="12, 0" />
</Style>
<Style x:Key="HeaderLabelStyle"
TargetType="{x:Type Label}">
<Setter Property="FontFamily"
@ -169,9 +183,9 @@
<Entry.Style>
<OnPlatform
x:TypeArguments="Style"
iOS="{StaticResource EntryStyle}"
Android="{StaticResource EntryStyle}"
WinPhone="{StaticResource UwpEntryStyle}"/>
iOS="{StaticResource SettingsEntryStyle}"
Android="{StaticResource SettingsEntryStyle}"
WinPhone="{StaticResource SettingsUwpEntryStyle}"/>
</Entry.Style>
</Entry>
</StackLayout>
@ -226,9 +240,9 @@
<Entry.Style>
<OnPlatform
x:TypeArguments="Style"
iOS="{StaticResource EntryStyle}"
Android="{StaticResource EntryStyle}"
WinPhone="{StaticResource UwpEntryStyle}"/>
iOS="{StaticResource SettingsEntryStyle}"
Android="{StaticResource SettingsEntryStyle}"
WinPhone="{StaticResource SettingsUwpEntryStyle}"/>
</Entry.Style>
</Entry>
<Label
@ -240,9 +254,9 @@
<Entry.Style>
<OnPlatform
x:TypeArguments="Style"
iOS="{StaticResource EntryStyle}"
Android="{StaticResource EntryStyle}"
WinPhone="{StaticResource UwpEntryStyle}"/>
iOS="{StaticResource SettingsEntryStyle}"
Android="{StaticResource SettingsEntryStyle}"
WinPhone="{StaticResource SettingsUwpEntryStyle}"/>
</Entry.Style>
</Entry>
<Button


Loading…
Cancel
Save