Is it possible to not display or remove the MainPage Title bar in an Universal Windows App?
Welcome to Microsoft Q&A!
>>Is it possible to not display or remove the MainPage Title bar in an Universal Windows App?
May I know why you want to remove the title bar? Could you please share the expected behavior that you want to achieve?
In general, we can not remove the title bar but we could hide the title of the title bar (the buttons can not be hidden). UWP provides API-CoreApplicationViewTitleBar.ExtendViewIntoTitleBar Property that could hide the title bar and extend your app’s client area to cover the entire window, including the title bar area.
// change the button background to transparent //var titleBar = ApplicationView.GetForCurrentView().TitleBar; //titleBar.ButtonBackgroundColor = Colors.Transparent; // Hide default title bar. //var coreTitleBar = CoreApplication.GetCurrentView().TitleBar; //coreTitleBar.ExtendViewIntoTitleBar = true;
For more information, please refer to this document: Title bar customization.
Is this solution acceptable to you? If you have other questions, feel free to let me know.
8 people are following this question.