Skip to content

Instantly share code, notes, and snippets.

@Stayrony
Last active July 9, 2017 20:01
Show Gist options
  • Save Stayrony/7ee9040cc7632c7edd462d3b5b587f52 to your computer and use it in GitHub Desktop.
Save Stayrony/7ee9040cc7632c7edd462d3b5b587f52 to your computer and use it in GitHub Desktop.
Adding shadows to views in Xamarin.Forms Android using 9-patch image
<controls:ShadowFrame Grid.Row="1" Padding="0" VerticalOptions="Center">
<controls:ShadowFrame.Content>
<StackLayout Spacing="10" VerticalOptions="FillAndExpand">
<Image Source="https://i.ytimg.com/vi/61aM0DXpKkc/maxresdefault.jpg" Aspect="AspectFill" />
<Label Text="EXTREME DOWNHILL" Margin="20, 0" />
<Label Margin="20, 10, 20, 40" Text="Downhill mountain biking (DH) is a genre of mountain biking practiced on steep, rough terrain that often features jumps, drops, rock gardens and other obstacles ..." />
</StackLayout>
</controls:ShadowFrame.Content>
</controls:ShadowFrame>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment