Skip to content

Nofriendo Loading

Nofriendo Loading screen is an Aurora implementation of the loading screen presented on the Switch.

Properties

CurrentAnimationStep - int

Gets or sets the current animation step. Default is 0.

StepCount - int

Gets or sets the step count. Default value is 1.

MaxAnimationSteps - int

Gets or sets the maximum animation steps. Default is 3.

LoadingStartColor - Color

Gets or sets the color of the loading start. Default is Xamarin.Forms.Color.Default.

LoadingEndColor - Color

Gets or sets the color of the loading end. Default is Xamarin.Forms.Color.Default.

Methods

void StartAnimating(uint rate = 16, uint length = 250, Easing easing = null)

Starts the step animation.

rate: The time, in milliseconds, between frames.

length: The number of milliseconds over which to interpolate the animation.

easing: The easing function to use to transision in, out, or in and out of the animation.

void StopAnimating()

Stops the steps animation.

Example Usage

Xaml

<aurora:Nofriendo x:Name="loading" StepCount="6" LoadingStartColor="#F17A14" LoadingEndColor="#F4A624" />

C#

var loading = new Nofriendo
{
    StepCount = 3,
    LoadingStartColor = Color.Gray,
    LoadingEndColor = Color.Blue
};

Example Styles

A loading indicator with StepCount of 3, LoadingStartColor of Blue and LoadingEndColor of Gray:

var loading = new Nofriendo
{
    StepCount = 3,
    LoadingStartColor = Color.Blue,
    LoadingEndColor = Color.Gray
};
<aurora:Nofriendo x:Name="loading" StepCount="3" LoadingStartColor="Blue" LoadingEndColor="Gray" />

A loading indicator with StepCount of 12, LoadingStartColor of Green and LoadingEndColor of Aqua:

var loading = new Nofriendo
{
    StepCount = 12,
    LoadingStartColor = Color.Green,
    LoadingEndColor = Color.Aqua
};
<aurora:Nofriendo x:Name="loading" StepCount="12" LoadingStartColor="Green" LoadingEndColor="Aqua" />