【问题标题】:Can we customize the default style of hub or panorama app我们可以自定义中心或全景应用程序的默认样式吗
【发布时间】:2015-06-16 07:32:44
【问题描述】:

我正在尝试在 WP8 中自定义中心或全景样式。我可以通过自定义默认集线器或全景样式来制作屏幕 1 吗?我在更改默认 Screen 2 样式时遇到问题。有可能吗,怎么做?

【问题讨论】:

  • 是的,通过使用枢轴控制
  • 任何代码 sn-p .. 或指南?

标签: windows-phone-8 panorama-control


【解决方案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>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-08-06
    • 1970-01-01
    • 1970-01-01
    • 2020-11-03
    • 1970-01-01
    • 1970-01-01
    • 2020-02-27
    • 1970-01-01
    相关资源
    最近更新 更多