Hello,
In order to eliminate this blank space, you will also need to do the following.
case Microsoft.UI.Windowing.OverlappedPresenter overlappedPresenter:
overlappedPresenter.IsMaximizable = false;
overlappedPresenter.IsResizable = false;
overlappedPresenter.IsMinimizable = false;
overlappedPresenter.SetBorderAndTitleBar(false, false);
also I found this but GetParentWindow() can not regornize ? Thanks
GetParentWindow()
is a method that belongs to the Page class. Therefore, you need to put these methods into the ContentPage class, such as MainPage.
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.