IgrisModz.MauiFullScreen 1.0.0

dotnet add package IgrisModz.MauiFullScreen --version 1.0.0
                    
NuGet\Install-Package IgrisModz.MauiFullScreen -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="IgrisModz.MauiFullScreen" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="IgrisModz.MauiFullScreen" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="IgrisModz.MauiFullScreen" />
                    
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 IgrisModz.MauiFullScreen --version 1.0.0
                    
#r "nuget: IgrisModz.MauiFullScreen, 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.
#:package IgrisModz.MauiFullScreen@1.0.0
                    
#: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=IgrisModz.MauiFullScreen&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=IgrisModz.MauiFullScreen&version=1.0.0
                    
Install as a Cake Tool

MauiFullScreen

MauiFullScreen is a simple and efficient .NET MAUI library to manage full-screen mode in your applications.

Features

  • Enable / Disable: Change the full-screen state on the fly.
  • Toggle: Switch between full-screen and windowed mode.
  • State Tracking: Easily check if the application is currently in full-screen mode.

The methods directly extend the Microsoft.Maui.Controls.Window object.

Basic Usage

using MauiFullScreen;

// Check the current state
bool isFull = FullScreenHelper.IsFullscreen;

// Enable full-screen mode
Window?.EnableFullScreen();

// Disable full-screen mode
Window?.DisableFullScreen();

// Toggle between full-screen and windowed mode
Window?.ToggleFullScreen();

// Set the full-screen state directly
// (enable only if not already in the desired state)
Window?.SetFullScreen(isFull);

Integration Example (MauiFullScreen.Sample)

The following example shows how to integrate the state change with a button and adjust the SafeAreaEdges for a truly immersive rendering, particularly on mobile devices:

void OnFullScreenClicked(object? sender, EventArgs e)
{
	var enable = !FullScreenHelper.IsFullscreen;

	SafeAreaEdges = MainRoot.SafeAreaEdges = enable
        ? SafeAreaEdges.None
        : SafeAreaEdges.Default;

	// Window?.ToggleFullScreen();
	Window?.SetFullScreen(enable);

	FullScreenBtn.Text = enable ? "FullScreen [On]" : "FullScreen [Off]";
}

Compatibility

This project targets .NET 10 and is designed to work on the platforms supported by .NET MAUI (Android, iOS, Windows, MacCatalyst). Platform-specific implementations (such as on Android) automatically handle screen notches and the hiding of system bars.

Note regarding iOS and MacCatalyst: These platforms have not been tested. Developing, building, and testing applications for Apple platforms strictly requires Apple-branded hardware (a Mac) according to Apple's End User License Agreement (EULA). Since I do not currently possess the appropriate legal Apple hardware, these platforms remain untested. Contributions, bug reports, and pull requests from developers with macOS environments are highly appreciated!

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-android36.0 is compatible.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-ios26.0 is compatible.  net10.0-maccatalyst was computed.  net10.0-maccatalyst26.0 is compatible.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  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

    • No dependencies.
  • net10.0-android36.0

    • No dependencies.
  • net10.0-ios26.0

    • No dependencies.
  • net10.0-maccatalyst26.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.0.0 91 3/8/2026