sthewissen/Xamarin.Forms.PancakeView

Unable to render BackgroundGradient

Closed this issue · 3 comments

Hi,
I started a new shared project from scratch, referenced this awesome project by nuget, and i try to do this:
<?xml version="1.0" encoding="UTF-8"?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:yummy="clr-namespace:Xamarin.Forms.PancakeView;assembly=Xamarin.Forms.PancakeView" x:Class="App4.MainPage"> <ContentPage.Content> <StackLayout BackgroundColor="White"> <yummy:PancakeView BackgroundGradientEndColor="Red" BackgroundGradientStartColor="Gainsboro"> <Label FontSize="20" Text="PancakeView" VerticalOptions="Center" /> </yummy:PancakeView> </StackLayout> </ContentPage.Content> </ContentPage>

But I can't see any background on android. What is my mistake?

I don't have any problems with 1.6.x.

This is because those properties have been deprecated in v2.0 and upwards - use BackgroundGradientStops instead.

They will be completely removed in v2.1.