how to hide / collapse title bar in a UWP app?

14,144

Finally, I should say, that, for the purposes of having additional screen real estate (which I needed), it is possible to expand client area to title bar and make background color of 3 buttons (minimize, maximize, close) transparent:

With standard titlebar:

enter image description here

With extended view and transparent buttons' background:

ApplicationViewTitleBar formattableTitleBar = ApplicationView.GetForCurrentView().TitleBar;
formattableTitleBar.ButtonBackgroundColor = Colors.Transparent;
CoreApplicationViewTitleBar coreTitleBar = CoreApplication.GetCurrentView().TitleBar;
coreTitleBar.ExtendViewIntoTitleBar = true;

enter image description here

Share:
14,144
Bad
Author by

Bad

Updated on June 05, 2022

Comments