Windows 8 Store アプリケーションの既定の背景色を定義しようとしていますが、XAML エディターと Blend では正しく表示されますが、Windows 8 と Windows RT エミュレーターで実行すると既定の黒の背景になります。
「Split App」VS 2012 テンプレートに基づいてまったく新しい Windows 8 アプリを作成し、App.xaml を変更して ApplicationPageBackgroundThemeBrush の新しい値を指定しました。
これは私の App.xaml がどのように見えるかです:
<Application
x:Class="App3.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App3"
xmlns:localData="using:App3.Data">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<!--
Styles that define common aspects of the platform look and feel
Required by Visual Studio project and item templates
-->
<ResourceDictionary Source="Common/StandardStyles.xaml"/>
</ResourceDictionary.MergedDictionaries>
<!-- Application-specific resources -->
<x:String x:Key="AppName">App3</x:String>
<!-- Basic foreground and background colours -->
<SolidColorBrush x:Key="ApplicationPageBackgroundThemeBrush" Color="#FF3CA5DC"/>
<SolidColorBrush x:Key="ApplicationPageForegroundThemeBrush" Color="White"/>
</ResourceDictionary>
</Application.Resources>