In Windows 10 programs, Metro programs that were previously available for full-screen mode can now run in windowed mode and have a new name called Windows Universal (Universal Windows app), or UWP programs. Although the new UWP program is roughly the same as the previous Metro program, it introduces something new, and this article introduces several features of its title bar settings.
Hide title bar:
Extend the application interface to the TitleBar area
coreapplication. Getcurrentview(). TitleBar. Extendviewintotitlebar = true;
To modify the title bar color:
VarTiwtlebar = Windows.UI.ViewManagement.Applicationview.Getforcurrentview().TitleBar;
TitleBar.BackgroundColor=Colors.Darkblue;
TitleBar.Foregroundcolor=Colors.white titlebar. buttonhoverbackgroundcolor = colors. titlebar. buttonbackgroundcolor = Colors. titlebar. buttonforegroundcolor = Colors.
To customize the title bar control:
You can designate any control in the interface as the title bar, and specify that the control will have the behavior properties of the title bar, such as dragging a window, right-clicking the popup Action menu, and so on.
Window. Current. Settitlebar(grid);
Windows Ten UWP program title bar settings