2016-05-06 139 views

回答

1

有一种方法可以自定义标题栏。我觉得这篇文章会为你有所帮助:
Easily manage the Title Bar in Windows 10 apps

例如,你可以用ApplicationView.GetForCurrentView().TitleBar property编辑颜色:

var titleBar = ApplicationView.GetForCurrentView().TitleBar; 
titleBar.ButtonBackgroundColor = Colors.Maroon; 
titleBar.ButtonForegroundColor = Colors.Yellow; 

或者你甚至可以通过该链路解决方案如何删除Chrome和创建找到你自己的镶边与后退按钮(有点复杂的方式)

的想法是设置应用程序“无边框”与CoreApplication class和代码,如:

CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true; 

之后,您可以创建您的XAML元素,而不是标题栏的帮助Window.SetTitleBar method

+0

我同意你的解决方案。另外我不知道有关自定义Chrome的可能性,谢谢! –