Xaml 如何更改透视项目主体的默认颜色

Xaml 如何更改透视项目主体的默认颜色,xaml,windows-phone-7,windows-phone-8,pivotitem,Xaml,Windows Phone 7,Windows Phone 8,Pivotitem,我一直在我的应用程序中使用一个通用的自定义透视样式,但它正在将标题前景和正文前景更改为相同的颜色(蓝色)。我只需要标题前景根据我的规范进行相应的更改,但正文前景应保持为默认的应用程序前景。如何在以下模板中进行更改 <Style x:Key="PivotStyleBlue" TargetType="phone:Pivot"> <Setter Property="Margin" Value="0"/> <Setter Property="

我一直在我的应用程序中使用一个通用的自定义透视样式,但它正在将标题前景和正文前景更改为相同的颜色(蓝色)。我只需要标题前景根据我的规范进行相应的更改,但正文前景应保持为默认的应用程序前景。如何在以下模板中进行更改

<Style x:Key="PivotStyleBlue" TargetType="phone:Pivot">
        <Setter Property="Margin" Value="0"/>
        <Setter Property="Padding" Value="0"/>
        <!--<Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>-->
        <Setter Property="Foreground" Value="Blue"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Grid/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="phone:Pivot">
                    <Grid HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
  VerticalAlignment="{TemplateBinding VerticalAlignment}">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid CacheMode="BitmapCache" Grid.RowSpan="2" >
                            <Grid.Background>
                                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                    <GradientStop Color="Transparent" Offset="0.0" />
                                    <GradientStop Color="Transparent" Offset="1.0" />
                                </LinearGradientBrush>
                            </Grid.Background>
                        </Grid>
                        <Grid Background="{TemplateBinding Background}" CacheMode="BitmapCache"
    Grid.Row="2" />
                        <ContentPresenter ContentTemplate="{TemplateBinding TitleTemplate}"
                Content="{TemplateBinding Title}" Margin="24,17,0,-7"/>
                        <Primitives:PivotHeadersControl x:Name="HeadersListElement"
                                      Grid.Row="1"/>
                        <ItemsPresenter x:Name="PivotItemPresenter"
              Margin="{TemplateBinding Padding}" Grid.Row="2"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

仅更改
标题列表元素的
前景

<Primitives:PivotHeadersControl
    x:Name="HeadersListElement"
    Foreground="Blue"
    Grid.Row="1" />