Skip to content
Discussion options

You must be logged in to vote

Yes it is possible to do this, follow the example below

builder.ConfigureLifecycleEvents(events =>
{
     events.AddWindows(windows =>
     {
          windows.OnWindowCreated(window =>
          {
              IntPtr nativeWindowHandle = WinRT.Interop.WindowNative.GetWindowHandle(window);
              WindowId nativeWindowId  = Win32Interop.GetWindowIdFromWindow(nativeWindowHandle);
              AppWindow appWindow = AppWindow.GetFromWindowId(nativeWindowId);
              var p = appWindow.Presenter as OverlappedPresenter;

              window.ExtendsContentIntoTitleBar = false;
              p.SetBorderAndTitleBar(false, false);
          });
     });
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RobertSobral
Comment options

Answer selected by RobertSobral
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants