AppActions.Icons.Maui 1.0.0

.NET 6.0
NuGet\Install-Package AppActions.Icons.Maui -Version 1.0.0
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.
dotnet add package AppActions.Icons.Maui --version 1.0.0
<PackageReference Include="AppActions.Icons.Maui" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AppActions.Icons.Maui --version 1.0.0
#r "nuget: AppActions.Icons.Maui, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install AppActions.Icons.Maui as a Cake Addin
#addin nuget:?package=AppActions.Icons.Maui&version=1.0.0

// Install AppActions.Icons.Maui as a Cake Tool
#tool nuget:?package=AppActions.Icons.Maui&version=1.0.0

AppActions.Icons.Maui

A .NET MAUI library that provides some default icons for AppActions without having to create your own.

Features

Based on iOS' Home Screen Quick Action Icons, this library provides similar icons for both Android & Windows, but styled towards the platforms default design style. Also supports the use of SFSymbols as Icons on iOS.

  • Out-of-the-box icons available for Android, iOS & Windows
  • Use SF Symbols on iOS
  • Customise Android icons with brand colors
  • Builds on top of the Maui Essentials api
  • Specify different image names per platform

Getting Started

  1. Add the AppActions.Icons.Maui nuget package to your MAUI project.

  2. Setup you app actions as per the Maui Documentation

  3. In your MauiProgram.CreateMauiApp(), add UseAppActionIcons() to your Essentials configuration builder.

    public static MauiApp CreateMauiApp()
    {
        var builder = MauiApp.CreateBuilder();
        builder
            .UseMauiApp<App>()
            .ConfigureEssentials(essentials =>
            {
                essentials
                    .UseAppActionIcons() // Add this line
                    .AddAppAction("home_sc", "Home", icon: AppActionIcon.Home)
                    .OnAppAction(App.HandleAppActions);
            });
    
        return builder.Build();
    }
    
  4. Now set the AppAction's icon property using one of the provided AppActionIcon options


For more examples of how to use and some troubleshooting tips, check the Github Repository

Product Versions
.NET net6.0 net6.0-android net6.0-android31.0 net6.0-ios net6.0-ios15.4 net6.0-maccatalyst net6.0-maccatalyst15.4 net6.0-macos net6.0-tvos net6.0-windows net6.0-windows10.0.19041
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.0 225 6/12/2022
1.0.0-pre3 58 6/5/2022
1.0.0-pre2 55 6/5/2022
1.0.0-pre1 64 6/4/2022