新しいUniversal Windows Platformアプリケーションで、ItemsControlの背景を設定しようとしています。しかし、それは何もしていないようです。私がVSテンプレートに行った唯一の変更は、MainPage.xamlにあります。これは次のようになります:ItemControl背景色
<Page
x:Class="UWPPlayground.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:UWPPlayground"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" x:Name="Hello">
<Grid Background="Blue">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*">
</ColumnDefinition>
<ColumnDefinition Width="*">
</ColumnDefinition>
</Grid.ColumnDefinitions>
<ItemsControl Grid.Row="0" Grid.Column="0" Width="60" Height="30" Foreground="Wheat" Background="White">
<TextBlock Text="Hello World!"></TextBlock>
<TextBlock Text="Can you see this?"></TextBlock>
</ItemsControl>
<Grid Grid.Row="0" Grid.Column="1" Background="Purple"></Grid>
</Grid>
</Page>
結果は次のとおりです。 TextBlockに小麦色のテキストがあるので、ItemsControlのForegroundプロパティは正常に機能しているようです。コントロールのサイズが小さいため、テキストは期待通りにカットオフされます。ただし、背景は表示されません。私は何が欠けていますか?