SLVZ.Maui.SystemUI 1.1.4

dotnet add package SLVZ.Maui.SystemUI --version 1.1.4
                    
NuGet\Install-Package SLVZ.Maui.SystemUI -Version 1.1.4
                    
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.1.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SLVZ.Maui.SystemUI" Version="1.1.4" />
                    
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.1.4
                    
#r "nuget: SLVZ.Maui.SystemUI, 1.1.4"
                    
#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.1.4
                    
#: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.1.4
                    
Install as a Cake Addin
#tool nuget:?package=SLVZ.Maui.SystemUI&version=1.1.4
                    
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
  • UITheme
  • Change status bar 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 ✅

If you want to build a fullscreen app you can do that 😃

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

Then you can have Statusbar height and Navigationbar height at the same time to handle them by yourself

int navHeight = Edge2EdgeHandler.NavbarHeight;   
int statusHeight = Edge2EdgeHandler.StatusbarHeight;
  

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

If you want to build a fullscreen app you can do that 😃

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

Then you can have Statusbar height and Navigationbar height at the same time to handle them by yourself

int navHeight = Edge2EdgeHandler.NavbarHeight;   
int statusHeight = Edge2EdgeHandler.StatusbarHeight;
  

2. Back press handler

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

How to use?

You can use handler wherever you want

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

Done ✅

3. ThemeHelper

Get native system default theme

var theme = ThemeHelper.SystemTheme;

This will return an UITheme variable

Set status bar and navigation bar color for Android

They only require a MAUI Color

ThemeHelper.SetStatusBarColor(color);

ThemeHelper.SetNavigationBarColor(color);

👨‍💻 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.
  • net10.0-android36.0

    • No dependencies.
  • net10.0-windows10.0.19041

    • No dependencies.

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.1.4 88 6/16/2026
1.1.3 98 5/31/2026
1.0.9 131 1/27/2026
1.0.8 118 1/27/2026
1.0.7 117 1/27/2026
1.0.6 114 1/27/2026
1.0.5 118 1/27/2026
1.0.4 119 1/24/2026
1.0.3 124 1/8/2026
1.0.2 126 1/7/2026
1.0.1 122 1/7/2026
1.0.0 124 1/7/2026