AppActions.Icons.Maui 1.0.0

dotnet add package AppActions.Icons.Maui --version 1.0.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.
<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 and Polyglot Notebooks. 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 Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-android31.0 is compatible.  net6.0-ios was computed.  net6.0-ios15.4 is compatible.  net6.0-maccatalyst was computed.  net6.0-maccatalyst15.4 is compatible.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net6.0-windows10.0.19041 is compatible.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
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 2,603 6/12/2022
1.0.0-pre3 178 6/5/2022
1.0.0-pre2 152 6/5/2022
1.0.0-pre1 173 6/4/2022