Hello,
For the full-screen requirement of the Windows platform, you can refer to the following code.
#if WINDOWS
using Microsoft.UI;
using Microsoft.UI.Windowing;
#endif
// Add this method for builder.
.ConfigureLifecycleEvents(events =>
{
#if WINDOWS
events.AddWindows(w =>
{
w.OnWindowCreated(window =>
{
window.ExtendsContentIntoTitleBar = true; //If you need to completely hide the minimized maximized close button, you need to set this value to false.
IntPtr hWnd = WinRT.Interop.WindowNative.GetWindowHandle(window);
WindowId myWndId = Win32Interop.GetWindowIdFromWindow(hWnd);
var _appWindow = AppWindow.GetFromWindowId(myWndId);
_appWindow.SetPresenter(AppWindowPresenterKind.FullScreen);
});
});
#endif
});
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.