如何更改台式机或平板电脑上的 StatusBar 背景?
How to change StatusBar background on desktop or tablet?
如何更改台式机或平板电脑上的 StatusBar 背景?我可以在 phone 上做到这一点,但不能在其他外形上做到这一点。我在 Windows 10 的新 Todoist 应用程序中看到了它。谢谢。
StatusBar
不适用于台式机和平板电脑。我猜你的意思是 TitleBar
:
var titleBar = ApplicationView.GetForCurrentView().TitleBar;
titleBar.BackgroundColor = new Color() { A = 255, R = 54, G = 60, B = 116 };
titleBar.ForegroundColor = new Color() { A = 255, R = 232, G = 211, B = 162 };
titleBar.InactiveBackgroundColor = new Color() { A = 255, R = 135, G = 141, B = 199 };
titleBar.InactiveForegroundColor = new Color() { A = 255, R = 232, G = 211, B = 162 };
更多详情看the sample
也看看这个cool sample
如何更改台式机或平板电脑上的 StatusBar 背景?我可以在 phone 上做到这一点,但不能在其他外形上做到这一点。我在 Windows 10 的新 Todoist 应用程序中看到了它。谢谢。
StatusBar
不适用于台式机和平板电脑。我猜你的意思是 TitleBar
:
var titleBar = ApplicationView.GetForCurrentView().TitleBar;
titleBar.BackgroundColor = new Color() { A = 255, R = 54, G = 60, B = 116 };
titleBar.ForegroundColor = new Color() { A = 255, R = 232, G = 211, B = 162 };
titleBar.InactiveBackgroundColor = new Color() { A = 255, R = 135, G = 141, B = 199 };
titleBar.InactiveForegroundColor = new Color() { A = 255, R = 232, G = 211, B = 162 };
更多详情看the sample
也看看这个cool sample