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

前端 未结 1 959
南笙
南笙 2021-02-06 12:44

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 a

相关标签:
1条回答
  • 2021-02-06 13:01

    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;
    

    0 讨论(0)
提交回复
热议问题