Is there a way to somehow hide / collapse / make temporarily invisible (but not fully disable) titlebar in a UWP app?
I know that it is possible to make app fullscreen after which title bar automatically collapses, but I need to implement it in a resizable desktop window. I also know that you can customize appearance of titlebar, like color, etc.
Reason: I have an application with a lot of windows and need to save screen space and have more room for client area of windows.
I've read different sources, but couldn't find an answer:
For example, there seems to be a solution for the same problem for WPF: How to remove the title bar from a window but keep the border
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:
With extended view and transparent buttons' background:
ApplicationViewTitleBar formattableTitleBar = ApplicationView.GetForCurrentView().TitleBar;
formattableTitleBar.ButtonBackgroundColor = Colors.Transparent;
CoreApplicationViewTitleBar coreTitleBar = CoreApplication.GetCurrentView().TitleBar;
coreTitleBar.ExtendViewIntoTitleBar = true;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With