我想为 Windows 8 的枢轴控件的每个枢轴项分配不同的颜色。
全部为红色,分配为绿色。我如何实现它?
<Grid x:Name="LayoutRoot" Background="#FF0B345A">
<!--Pivot Control-->
<phone:Pivot Title="MY TASKS">
<!--Pivot item one-->
<phone:PivotItem Header="all">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<StackPanel Margin="0,25,0,0" Grid.Row="0">
<TextBlock Text="Due Today 12:00PM" Foreground="#FF4472A2"></TextBlock>
</StackPanel>
<StackPanel Margin="0,25,0,0" Grid.Row="1">
<TextBlock Text="Sales On-Boarding" Foreground="#FFB7BEC6"></TextBlock>
<TextBlock Text="Due 9/25/13" Foreground="#FF4472A2"></TextBlock>
</StackPanel>
</Grid>
</phone:PivotItem>
<!--Pivot item two-->
<phone:PivotItem Header="assigned">
<Grid/>
</phone:PivotItem>
<!--Pivot item three-->
<phone:PivotItem Header="overdue">
<Grid/>
</phone:PivotItem>
</phone:Pivot>
</Grid>