GradientPages 1.0.3

GradientPages for Xamarin.Forms projects that add the gradient background.

Requires NuGet 2.8.3 or higher.

Install-Package GradientPages -Version 1.0.3
dotnet add package GradientPages --version 1.0.3
<PackageReference Include="GradientPages" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GradientPages --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

GradientPages

Nuget Package

In MainActivity Initlize the package like this.

global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
GradientPages.Droid.GradientContentPageRenderer.Init(this);

In AppDelegate Initlize the package like this.

global::Xamarin.Forms.Forms.Init();
GradientPages.iOS.GradientContentPageRenderer.Init();

In XAML add NameSpace like this

xmlns:gradient="clr-namespace:GradientPages.Abstractions;assembly=GradientPages.Abstractions"

Then you can use GradientPage Like this.

<?xml version="1.0" encoding="utf-8" ?>
<gradient:GradientContentPage
    x:Class="GradientTest.MainPage"
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:gradient="clr-namespace:GradientPages.Abstractions;assembly=GradientPages.Abstractions"
    StartColor="Black"
    EndColor="Green"
    Direction="ToBottom">
    <StackLayout>
        <!--  Place new controls here  -->
        <Label
            TextColor="White"
            HorizontalOptions="Center"
            Text="Welcome to Xamarin.Forms!"
            VerticalOptions="CenterAndExpand" />
    </StackLayout>
</gradient:GradientContentPage>

GradientPages

Nuget Package

In MainActivity Initlize the package like this.

global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
GradientPages.Droid.GradientContentPageRenderer.Init(this);

In AppDelegate Initlize the package like this.

global::Xamarin.Forms.Forms.Init();
GradientPages.iOS.GradientContentPageRenderer.Init();

In XAML add NameSpace like this

xmlns:gradient="clr-namespace:GradientPages.Abstractions;assembly=GradientPages.Abstractions"

Then you can use GradientPage Like this.

<?xml version="1.0" encoding="utf-8" ?>
<gradient:GradientContentPage
    x:Class="GradientTest.MainPage"
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:gradient="clr-namespace:GradientPages.Abstractions;assembly=GradientPages.Abstractions"
    StartColor="Black"
    EndColor="Green"
    Direction="ToBottom">
    <StackLayout>
        <!--  Place new controls here  -->
        <Label
            TextColor="White"
            HorizontalOptions="Center"
            Text="Welcome to Xamarin.Forms!"
            VerticalOptions="CenterAndExpand" />
    </StackLayout>
</gradient:GradientContentPage>

Release Notes

• Gradient Content Page added.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.3 147 6/26/2020
1.0.2 130 6/26/2020
1.0.1 122 6/25/2020
1.0.0 127 6/25/2020