2016-10-30 17 views
1

私はWindows Universalアプリケーション(Windows 10)を設計する際に自分自身を試しています。すべてが正しく見えるように、アプリケーションの境界線の色を変更したいと考えています。私は以前にフォーラムをチェックしていたし、解決策のうちのどれかが正しいとは思わなかった。ここでは、すべてのお時間をUWP AppBar color c#

おかげ

は私が私のシステム色として濃い灰色を持っていてもカントー、ミント色を発見した例です。

Fitbit example

答えて

3

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

私はあなたのように多くのことを見て、いくつかの解決策を見たが、これは実際に動作する唯一のものです。どうもありがとうございます –