1
我想改变我的应用程序中的标题栏按钮(后退按钮和最小化/展开/关闭按钮)的背景颜色。具体来说,我希望后退按钮的颜色与最小化/展开/关闭按钮不同。此代码将更改后退按钮和最小化/展开/关闭按钮颜色;我怎样才能从彼此分开改变颜色?UWP - 改变后退按钮颜色而不改变最小化/关闭按钮颜色
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;
}