.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,071 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to make a kiosk app for windows 10 x64 tablets and some android tablets in the future. I used this code in MauiProgram.cs:
#if WINDOWS
builder.ConfigureLifecycleEvents(events =>
{
events.AddWindows(wndLifeCycleBuilder =>
{
wndLifeCycleBuilder.OnWindowCreated(window =>
{
IntPtr hWnd = WinRT.Interop.WindowNative.GetWindowHandle(window);
WindowId myWndId = Win32Interop.GetWindowIdFromWindow(hWnd);
var _appWindow = AppWindow.GetFromWindowId(myWndId);
_appWindow.SetPresenter(AppWindowPresenterKind.FullScreen);
});
});
});
#endif
But the result is pretty bad:
Any other ideas?
As you can see it only make it maximized using this code.
if WINDOWS
endif
Do you want to remove title bar?
Yes, I want full screen. Not just maximized. I want the title bar removed and my App over the Taskbar.
Sign in to comment