Skip to content

Instantly share code, notes, and snippets.

@Vladis466
Created January 5, 2018 22:04
Show Gist options
  • Save Vladis466/de3ec63f1ca40783e6d3b67a4b3c271f to your computer and use it in GitHub Desktop.
Save Vladis466/de3ec63f1ca40783e6d3b67a4b3c271f to your computer and use it in GitHub Desktop.
Creating a shadow Backdrop using xaml in xamarin forms without having to resort to native implementation
<Frame HorizontalOptions="FillAndExpand" Padding="1,1,1,1" Margin="5,5,5,5" HasShadow="True">
<Frame.BackgroundColor>
<Color x:FactoryMethod="FromRgba">
<x:Arguments>
<x:Int32>0</x:Int32>
<x:Int32>0</x:Int32>
<x:Int32>0</x:Int32>
<x:Int32>128</x:Int32>
</x:Arguments>
</Color>
</Frame.BackgroundColor>
</Frame>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment