Skip to content

aliahmad-dev/GradientPages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages