源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

设计windows phone页面主题

  • 时间:2020-09-02 19:59 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:设计windows phone页面主题
下面通过图文并茂的方式给大家展示下,具体实现步骤请看下文。 效果图如下: [img]http://files.jb51.net/file_images/article/201507/201507281048123.png[/img] [b]1.保证状态栏背景色与主题栏颜色相同需设置状态栏的透明度,代码如下:[/b]
[u]复制代码[/u] 代码如下:
shell:SystemTray.IsVisible="True" shell:SystemTray.Opacity="0.01"
[b]2.顶部状态栏高度为25,字的上下要留部分空白 3.内容栏目中设计为渐变颜色,代码如下:[/b]
<Grid x:Name="LayoutRoot">
    <Grid.RowDefinitions>
      <RowDefinition Height="80"/>
      <RowDefinition Height="*"/>
    </Grid.RowDefinitions>
    <Grid Grid.Row="0" Background="Blue">
      <TextBlock Text="我的应用" Margin="0,25,0,0" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="30"/>
    </Grid>
    <Grid Grid.Row="1">
      <Grid.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
          <GradientStop Color="#FF6CBFC3" Offset="1"/>
          <GradientStop Color="#FF68AE61" Offset="0"/>
        </LinearGradientBrush>
      </Grid.Background>
    </Grid>
  </Grid>

以上内容就是设计windows phone页面主题的全部代码,希望对大家有所帮助。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部