我正在尝试更改应用程序中标题栏按钮的背景颜色(“后退”按钮和最小化/展开/关闭按钮)。具体来说,我希望后退按钮颜色与最小化/扩展/关闭按钮不同。此代码更改后退按钮和最小化/扩展/关闭按钮颜色;如何单独更改颜色?
var titleBar = ApplicationView.GetForCurrentView().TitleBar;
if (titleBar != null)
{
// I only want to change the back button color here, but this code
// changes both the back button and resize/close buttons color too
titleBar.ButtonBackgroundColor = Windows.UI.Colors.DarkBlue;
}