透视页眉模板问题Windows Universal C#XAML

透视页眉模板问题Windows Universal C#XAML,c#,xaml,binding,pivot,C#,Xaml,Binding,Pivot,我看不到我的数据透视项,它不可见,但绑定正确: App.xaml中的我的模板: <DataTemplate x:Key="GoldStyle"> <ContentPresenter> <TextBlock Text="{Binding}" FontFamily="Segoe Script" Foreground="Gold" FontSize="10" Margin="0,70,0,0" /> &l

我看不到我的数据透视项,它不可见,但绑定正确:

App.xaml中的我的模板:

  <DataTemplate x:Key="GoldStyle">
        <ContentPresenter>
            <TextBlock Text="{Binding}" FontFamily="Segoe Script" Foreground="Gold" FontSize="10"  Margin="0,70,0,0" />
        </ContentPresenter>
    </DataTemplate>

我的轴心:

<Pivot HeaderTemplate="{StaticResource GoldStyle}">
        <PivotItem Header="Public Profile"  >
            <Grid>
                <TextBlock Text="-Set your Steam Profile to Public (Steam Settings)" FontFamily="Segoe Script" TextWrapping="Wrap" Foreground="WhiteSmoke"></TextBlock>
            </Grid>
        </PivotItem>
        <PivotItem Header="Features">
            <TextBlock FontFamily="Segoe Script" Text="-Calculate Price" Foreground="WhiteSmoke"></TextBlock>
        </PivotItem>


我做错了什么?

乍一看,我认为这有点奇怪,但唯一的问题是,在ContentPresenter的文本块中,您有Margin=“0,70,0,0”替换为Margin=“0,0,0”


所有其他事情都是正确的。

乍一看,我觉得这有点奇怪,但唯一的问题是,在ContentPresenter的文本块中,您有Margin=“0,70,0,0”替换为Margin=“0,0,0”

其他一切都是对的