当前位置:Gxlcms > asp.net > 设计windows phone页面主题

设计windows phone页面主题

时间:2021-07-01 10:21:17 帮助过:10人阅读

下面通过图文并茂的方式给大家展示下,具体实现步骤请看下文。

效果图如下:

1.保证状态栏背景色与主题栏颜色相同需设置状态栏的透明度,代码如下:
代码如下:
shell:SystemTray.IsVisible="True" shell:SystemTray.Opacity="0.01"

2.顶部状态栏高度为25,字的上下要留部分空白
3.内容栏目中设计为渐变颜色,代码如下:

  1. <Grid x:Name="LayoutRoot">
  2. <Grid.RowDefinitions>
  3. <RowDefinition Height="80"/>
  4. <RowDefinition Height="*"/>
  5. </Grid.RowDefinitions>
  6. <Grid Grid.Row="0" Background="Blue">
  7. <TextBlock Text="我的应用" Margin="0,25,0,0" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="30"/>
  8. </Grid>
  9. <Grid Grid.Row="1">
  10. <Grid.Background>
  11. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  12. <GradientStop Color="#FF6CBFC3" Offset="1"/>
  13. <GradientStop Color="#FF68AE61" Offset="0"/>
  14. </LinearGradientBrush>
  15. </Grid.Background>
  16. </Grid>
  17. </Grid>

以上内容就是设计windows phone页面主题的全部代码,希望对大家有所帮助。

人气教程排行