Particle.Maui 1.0.3

.NET 6.0
dotnet add package Particle.Maui --version 1.0.3
NuGet\Install-Package Particle.Maui -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Particle.Maui" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Particle.Maui --version 1.0.3
#r "nuget: Particle.Maui, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Particle.Maui as a Cake Addin
#addin nuget:?package=Particle.Maui&version=1.0.3

// Install Particle.Maui as a Cake Tool
#tool nuget:?package=Particle.Maui&version=1.0.3


A MAUI library to display particles e.g. confetti. Should work on all platforms. Ported from the Xamarin Forms version of this library:

Get it from NuGet Nuget


<img src="Media/sample.gif" width="640px" />

API Reference

The starting point is the class ParticleView.

| BindableProperty | Default | Description | |------------------|---------|-------------| | IsActive | true | Whether or not the control is displaying particles. Use this property to stop and restart the particles. | | IsRunning | true | Whether or not the control is animating particles. Use this property to pause and resume the particles. | | HasFallingParticles | false | Whether or not falling particles should be shown. | | FallingParticlesPerSecond | 60 | Amount of new particles to be added every second when HasFallingParticles is true. | | AddParticlesOnTap | false | Whether or not to add particles on tap. | | TapParticleCount | 30 | Amount of particles to add on tap when AddParticlesOnTap is true. | | AddParticlesOnDrag | false | Whether or not to add particles on drag. | | DragParticleCount | 60 | Amount of particles to add on drag when AddParticlesOnDrag is true. | | DragParticleMoveType | ParticleMovetype.Fall | Particle movement type while dragging. | | UseSKGLView | False on all platforms except Android | Whether or not to use the hardware-accelerated view for drawing. | | ShowDebugInfo | False | Whether or not to show debug information. | | DebugInfoColor | LawnGreen | Color to use when displaying debug information. | <br>

These properties aren't bindable.

| Property | Default | Description | |------------------|-|---------| | TouchParticleGenerator | SimpleParticleGenerator | A ParticleBase generator to be used when interacting with the ParticleView | | FallingParticleGenerator | FallingParticleGenerator | A ParticleBase generator to be used when showing particles that fall from the top edge to the bottom | | CanvasSize | <none>| Contains the current canvas size | <br>

Usage Sample

<?xml version="1.0" encoding="utf-8"?>

<ContentPage xmlns=""
             Title="Custom Particles">
        <x:Array Type="{x:Type Color}" x:Key="ConfettiColors">

    <Grid VerticalOptions="FillAndExpand"
          Margin="0 ,0, 0, 5">

        <particle:ParticleView x:Name="MyParticleCanvas"
                            Margin="0, 20"
                            ParticleColors="{StaticResource ConfettiColors}" />


To conserver resources you can pause the particles when the Page is about to disappear and resume when the Page is about to appear.

        protected override void OnAppearing()

            MyParticleCanvas.IsRunning = true;

        protected override void OnDisappearing()

            MyParticleCanvas.IsRunning = false;
Product Compatible and additional computed target framework versions.
.NET net6.0-android31.0 is compatible.  net6.0-ios16.0 is compatible.  net6.0-maccatalyst15.4 is compatible.  net6.0-windows10.0.19041 is compatible. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 327 10/14/2022
1.0.2 301 10/14/2022
1.0.1 291 10/14/2022
1.0.0 291 10/14/2022