Skip to content

Instantly share code, notes, and snippets.

@andreinitescu
Last active October 30, 2018 19:33
Show Gist options
  • Save andreinitescu/69e8afcad1ed9de69b76 to your computer and use it in GitHub Desktop.
Save andreinitescu/69e8afcad1ed9de69b76 to your computer and use it in GitHub Desktop.
Xamarin Forms style resets
<!-- Put this inside App.xaml -->
<!-- if you don't know how to add App.xaml to your project use this guide: http://goo.gl/GuXMDD/>
<!-- Some default style resets -->
<Style TargetType="Grid">
<Setter Property="Padding"
Value="0" />
<Setter Property="RowSpacing"
Value="0" />
<Setter Property="ColumnSpacing"
Value="0" />
</Style>
<Style TargetType="StackLayout">
<Setter Property="Padding"
Value="0" />
<Setter Property="Spacing"
Value="0" />
</Style>
<Style TargetType="Frame">
<Setter Property="Padding"
Value="0" />
</Style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment