我正在尝试在WP8中自定义集线器或全景样式。我可以通过自定义默认的集线器或全景样式来制作屏幕1吗?我在更改默认屏幕2样式时遇到问题。有可能,怎么样?
答案 0 :(得分:1)
我只想创建一个自定义标题
<phone:PhoneApplicationPage.Resources>
<Style x:Key="ItemHeaderCustomStyle" TargetType="TextBlock">
<Setter Property="FontSize" Value="44"/>
<Setter Property="Margin" Value="-12,24,30,0"/>
<Setter Property="CharacterSpacing" Value="-35"/>
<Setter Property="Foreground" Value="#EEEEEE"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
</phone:PhoneApplicationPage.Resources>
<Grid x:Name="LayoutRoot" Background="Transparent">
<phone:Pivot>
<phone:PivotItem>
<phone:PivotItem.Header>
<TextBlock Text="main" Style="{StaticResource ItemHeaderCustomStyle}"/>
</phone:PivotItem.Header>
<StackPanel/>
</phone:PivotItem>
<phone:PivotItem>
<phone:PivotItem.Header>
<TextBlock Text="view" Style="{StaticResource ItemHeaderCustomStyle}"/>
</phone:PivotItem.Header>
<StackPanel/>
</phone:PivotItem>
<phone:PivotItem >
<phone:PivotItem.Header>
<TextBlock Text="features" Style="{StaticResource ItemHeaderCustomStyle}"/>
</phone:PivotItem.Header>
<StackPanel/>
</phone:PivotItem>
</phone:Pivot>
</Grid>