Shiny.Maui.Shell 1.0.0-beta-0011

Prefix Reserved
This is a prerelease version of Shiny.Maui.Shell.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Shiny.Maui.Shell --version 1.0.0-beta-0011
                    
NuGet\Install-Package Shiny.Maui.Shell -Version 1.0.0-beta-0011
                    
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="Shiny.Maui.Shell" Version="1.0.0-beta-0011" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Shiny.Maui.Shell" Version="1.0.0-beta-0011" />
                    
Directory.Packages.props
<PackageReference Include="Shiny.Maui.Shell" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Shiny.Maui.Shell --version 1.0.0-beta-0011
                    
#r "nuget: Shiny.Maui.Shell, 1.0.0-beta-0011"
                    
#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.
#addin nuget:?package=Shiny.Maui.Shell&version=1.0.0-beta-0011&prerelease
                    
Install Shiny.Maui.Shell as a Cake Addin
#tool nuget:?package=Shiny.Maui.Shell&version=1.0.0-beta-0011&prerelease
                    
Install Shiny.Maui.Shell as a Cake Tool

Shiny MAUI

Work In Progress

Shell

Inspired entirely by Prism - there is nothing here that is an original idea. I wanted to build this myself and build it around Shell so I could understand the inner workings of Shell.

Features/Roadmap

  • Registration
  • ServiceScope per Page
  • Shell XAML Integration(?)
  • Navigation Service
    • Events…?
    • To Commands
    • NavigateTo(string uri, args)
    • NavigateTo<TViewModel>
      • With Strongly Typed Init
        • Should be async??
    • GoBack(args)
    • Pop To Root
    • Set Root
    • Modals/Tabs
  • Auto ViewModel Push on to page
  • Source Generation
    • UseShinyShellGenerated
  • ViewModel lifecycle
    • Strongly Typed Navigation Args (when navigating by viewmodel - Take a look at Shiny Mediator shell for this
    • OnAppearing/OnDisappearing
    • Navigation Confirmation
    • Disposable/Destroy
    • OnNavigatedTo(args) and direction of navigation(?)
    • OnNavigatedFrom()
      • Direction pop, uri from where?

Setup

  1. Install Nuget nuget
  2. In your MauiProgram.cs, add the following
public static class MauiProgram
{
    public static MauiApp CreateMauiApp()
    {
        var builder = MauiApp.CreateBuilder();
        builder
            .UseMauiApp<App>()
            .UseShinyShell(x => x
                .Add<MainPage, MainViewModel>(registerRoute: false)
                .Add<AnotherPage, AnotherViewModel>("another")
            )
            .ConfigureFonts(fonts =>
            {
                fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
            });

#if DEBUG
        builder.Logging.SetMinimumLevel(LogLevel.Trace);
        builder.Logging.AddDebug();
#endif

        return builder.Build();
    }
}
  1. Now you can inject Shiny.INavigator into your VIewModels and navigate away

Shiny.INavigator - TODO

ViewModel Lifecycle

TODO

  • IDisposable - to permanently destroy any hooks
  • IPageLifecycleAware
  • INavigationConfirmation
  • Receive arguments on your ViewModel by implementing - IQueryAttributable

Goals

  • Must be AOT compliant
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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 94 6/6/2025
1.0.0-beta-0023 92 6/6/2025
1.0.0-beta-0022 103 6/3/2025
1.0.0-beta-0021 106 6/3/2025
1.0.0-beta-0020 102 6/3/2025
1.0.0-beta-0016 101 6/3/2025
1.0.0-beta-0015 104 6/3/2025
1.0.0-beta-0014 61 5/31/2025
1.0.0-beta-0013 67 5/31/2025
1.0.0-beta-0012 76 5/30/2025
1.0.0-beta-0011 105 5/29/2025
1.0.0-beta-0010 110 5/29/2025
1.0.0-beta-0009 107 5/29/2025
1.0.0-beta-0007 109 5/27/2025
1.0.0-beta-0006 109 5/27/2025