我正在尝试自己设计 Windows 通用应用程序 (Windows 10),为了使一切看起来正确,我希望更改应用程序边框颜色。我之前查看过论坛,但似乎没有一个解决方案是正确的。
谢谢你的时间
这是我找到的一个例子,薄荷色,即使我的系统颜色是深灰色。
最佳答案
来自 UWP Windows 10 App, TitleBar and Status bar customization :
if (ApiInformation.IsTypePresent("Windows.UI.ViewManagement.ApplicationView"))
{
var titleBar = ApplicationView.GetForCurrentView().TitleBar;
if (titleBar != null)
{
titleBar.ButtonBackgroundColor = Colors.DarkBlue;
titleBar.ButtonForegroundColor = Colors.White;
titleBar.BackgroundColor = Colors.Blue;
titleBar.ForegroundColor = Colors.White;
}
}
关于c# - UWP AppBar 颜色 c#,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40327650/