To achieve this effect:
1. Ensure that the status bar background color is the same as the theme bar color, you need to set the status bar transparency, the code is as follows:
Shell:systemtray.isvisible= "True" shell:systemtray.opacity= "0.01"
2. The top status bar height is 25, the word up and down to leave part of the blank 3. The Content column is designed as a gradient color with the following code:
<Gridx:name= "LayoutRoot"> <grid.rowdefinitions> <RowDefinitionHeight= "a"/> <RowDefinitionHeight="*"/> </grid.rowdefinitions> <GridGrid.Row= "0"Background= "Blue"> <TextBlockText= "My App"Margin= "0,25,0,0"VerticalAlignment= "Center"HorizontalAlignment= "Center"FontSize= "+"/> </Grid> <GridGrid.Row= "1"> <Grid.background> <LinearGradientBrushEndPoint= "0.5,1"StartPoint= "0.5,0"> <GradientStopColor= "#FF6CBFC3"Offset= "1"/> <GradientStopColor= "#FF68AE61"Offset= "0"/> </LinearGradientBrush> </Grid.background> </Grid> </Grid>
Windows Phone Interface Design