![]() |
VOOZH | about |
dotnet add package FullScreenStatus.Maui --version 1.0.6
NuGet\Install-Package FullScreenStatus.Maui -Version 1.0.6
<PackageReference Include="FullScreenStatus.Maui" Version="1.0.6" />
<PackageVersion Include="FullScreenStatus.Maui" Version="1.0.6" />Directory.Packages.props
<PackageReference Include="FullScreenStatus.Maui" />Project file
paket add FullScreenStatus.Maui --version 1.0.6
#r "nuget: FullScreenStatus.Maui, 1.0.6"
#:package FullScreenStatus.Maui@1.0.6
#addin nuget:?package=FullScreenStatus.Maui&version=1.0.6Install as a Cake Addin
#tool nuget:?package=FullScreenStatus.Maui&version=1.0.6Install as a Cake Tool
Currently it works with Navigation Page, Tabbed page, and Shell page. Full screen is supported by Windows, android and IOS. It is not supported on Mac Catalyst.
| FullScreenStatus.Maui | .NET 9 | QualityGate |
|---|---|---|
| Stable | 👁 .NET 9 |
Controls.ToggleFullScreenStatus();
Controls.FullScreen();
Controls.RestoreScreen();
The important part is using statement and builder statements
using MauiPageFullScreen;
Build arguements:
.UseFullScreen()
Example MauiProgram.cs
using MauiPageFullScreen;
using Microsoft.Extensions.Logging;
namespace MauiFullScreenSample
{
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>().UseFullScreen()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});
#if DEBUG
builder.Logging.AddDebug();
#endif
return builder.Build();
}
}
}
Example MainPage.xaml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
x:Class="MauiFullScreenSample.MainPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
<ScrollView>
<VerticalStackLayout
Padding="30,0"
Spacing="25"
VerticalOptions="Center">
<Image
HeightRequest="200"
HorizontalOptions="Center"
SemanticProperties.Description="Cute dot net bot waving hi to you!"
Source="dotnet_bot.png" />
<Label
FontSize="32"
HorizontalOptions="Center"
SemanticProperties.HeadingLevel="Level1"
Text="Hello, World!" />
<Button
x:Name="FullScreenToggle"
Clicked="FullScreen_Toggled"
HorizontalOptions="Center"
Text="Toggle Full Screen" />
<Button
x:Name="FullScreen"
Clicked="FullScreen_Clicked"
Text="Full Screen" />
<Button
x:Name="RestoreScreen"
Clicked="RestoreScreen_Clicked"
Text="Restore Screen" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>
Example MainPage.xaml.cs
using MauiPageFullScreen;
namespace MauiFullScreenSample
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
private void FullScreen_Toggled(object sender, EventArgs e)
{
Controls.ToggleFullScreenStatus();
}
private void FullScreen_Clicked(object sender, EventArgs e)
{
Controls.FullScreen();
}
private void RestoreScreen_Clicked(object sender, EventArgs e)
{
Controls.RestoreScreen();
}
}
}
On IOS devices plist must be adjusted with included code below:
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-android35.0 net9.0-android35.0 is compatible. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-ios18.0 net9.0-ios18.0 is compatible. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-maccatalyst18.0 net9.0-maccatalyst18.0 is compatible. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net9.0-windows10.0.19041 net9.0-windows10.0.19041 is compatible. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on FullScreenStatus.Maui:
| Package | Downloads |
|---|---|
|
MediaControls.Maui
Maui MediaElement custom Controls |
This package is not used by any popular GitHub repositories.
Full Screen support for dotnet Maui Page element