簡體   English   中英

UWP AppBar顏色c#

[英]UWP AppBar color c#

我正在嘗試設計Windows通用應用程序(Windows 10),為了使一切看起來正確,我希望改變應用程序邊框顏色。 我之前正在檢查論壇,而非解決方案似乎是正確的。

謝謝你所有的時間

這是我發現的一個例子,薄荷色甚至我有深灰色作為我的系統顏色。

Fitbit的例子

UWP Windows 10 App,TitleBar和狀態欄自定義

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;
    }
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM