[英]Pivot Header Template Issue Windows Universal C# XAML
I cant see my PivotItem, its invisible but the Binding is correctly: 我看不到我的PivotItem,它不可见,但绑定正确:
My Template In App.xaml: 我在App.xaml中的模板:
<DataTemplate x:Key="GoldStyle">
<ContentPresenter>
<TextBlock Text="{Binding}" FontFamily="Segoe Script" Foreground="Gold" FontSize="10" Margin="0,70,0,0" />
</ContentPresenter>
</DataTemplate>
My Pivot: 我的枢纽:
<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>
What did i do wrong? 我做错了什么?
At first sight I thought that it was something weird, but the only issue is that in the TextBlock of the ContentPresenter you have Margin="0,70,0,0" replace to Margin="0,0,0,0". 乍一看,我认为这很奇怪,但是唯一的问题是,在ContentPresenter的TextBlock中,您将Margin =“ 0,70,0,0”替换为Margin =“ 0,0,0,0”。
All the other things are right. 其他所有事情都是正确的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.