IgrisModz.MauiFullScreen
1.0.0
dotnet add package IgrisModz.MauiFullScreen --version 1.0.0
NuGet\Install-Package IgrisModz.MauiFullScreen -Version 1.0.0
<PackageReference Include="IgrisModz.MauiFullScreen" Version="1.0.0" />
<PackageVersion Include="IgrisModz.MauiFullScreen" Version="1.0.0" />
<PackageReference Include="IgrisModz.MauiFullScreen" />
paket add IgrisModz.MauiFullScreen --version 1.0.0
#r "nuget: IgrisModz.MauiFullScreen, 1.0.0"
#:package IgrisModz.MauiFullScreen@1.0.0
#addin nuget:?package=IgrisModz.MauiFullScreen&version=1.0.0
#tool nuget:?package=IgrisModz.MauiFullScreen&version=1.0.0
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 | Versions 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. |
-
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 |