SLVZ.MAUI.SystemUI 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package SLVZ.MAUI.SystemUI --version 1.0.3
                    
NuGet\Install-Package SLVZ.MAUI.SystemUI -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="SLVZ.MAUI.SystemUI" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SLVZ.MAUI.SystemUI" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="SLVZ.MAUI.SystemUI" />
                    
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 SLVZ.MAUI.SystemUI --version 1.0.3
                    
#r "nuget: SLVZ.MAUI.SystemUI, 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.
#:package SLVZ.MAUI.SystemUI@1.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SLVZ.MAUI.SystemUI&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=SLVZ.MAUI.SystemUI&version=1.0.3
                    
Install as a Cake Tool

SLVZ.MAUI.SystemUI

That does this package do

  • Handle Edge-to-Edge in Android
  • Handle Back-Button-Press in Android
  • Get system default theme
  • Change statusbar and navigation bar color

1. Edge-to-Edge handler

Native application

Set the shell directly in AppShell.cs inside AppShell():

public AppShell()
{
    InitializeComponent();
    Edge2EdgeHandler.SetShell(this);   
}   

Done ✅


Hybrid blazor application

Set the page directly in MainPage.cs inside MainPage():

public MainPage()
{
    InitializeComponent();
    Edge2EdgeHandler.SetPage(this);   
}   

Done ✅

You can also use this method in native application and set every page that laoded


2. Back press handler

In Android 16 and up the public override void OnBackPressed() function does not work.

Initialize

Initialize handler from MainActivity.cs in OnCreate

BackPressHandler.Initialize();

How to use?

You can use handler wherever you want

BackPressHandler.OnBackPressed += (o,e) => 
{
    //Do something
};

Done ✅

3. Get system default theme

How to use?

var theme = ITheme.SystemTheme;

This will return an AppTheme variable

4. Set Statusbar and Navigationbar color

They require AppTheme and Color

ITheme.SetStatusBarColor(color, theme);

ITheme.SetNavigationBarColor(color, theme);

👨‍💻 Author: SLVZ

Product Compatible and additional computed target framework versions.
.NET net10.0-android36.0 is compatible.  net10.0-windows10.0.19041 is compatible. 
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.9 99 1/27/2026
1.0.8 98 1/27/2026
1.0.7 96 1/27/2026
1.0.6 94 1/27/2026
1.0.5 97 1/27/2026
1.0.4 96 1/24/2026
1.0.3 102 1/8/2026
1.0.2 103 1/7/2026
1.0.1 104 1/7/2026
1.0.0 99 1/7/2026