MainPage.xaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <phone:PhoneApplicationPage x:Class="WindowsPhone.Recipes.Push.Client.MainPage"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
  5. xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
  9. FontFamily="{StaticResource PhoneFontFamilyNormal}"
  10. FontSize="{StaticResource PhoneFontSizeNormal}"
  11. Foreground="{StaticResource PhoneForegroundBrush}"
  12. SupportedOrientations="Portrait" Orientation="Portrait"
  13. shell:SystemTray.IsVisible="True">
  14. <!--LayoutRoot is the root grid where all page content is placed-->
  15. <Grid x:Name="LayoutRoot" Background="Transparent">
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="Auto"/>
  18. <RowDefinition Height="*"/>
  19. </Grid.RowDefinitions>
  20. <!--TitlePanel contains the name of the application and page title-->
  21. <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
  22. <TextBlock x:Name="ApplicationTitle" Text="SERVER PUSH PATTERNS" Style="{StaticResource PhoneTextNormalStyle}"/>
  23. <TextBlock x:Name="PageTitle" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
  24. </StackPanel>
  25. <!--ContentPanel - place additional content here-->
  26. <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
  27. <Border x:Name="activeView" />
  28. <Button Visibility="Collapsed" VerticalAlignment="Bottom" Name="button" Click="button_Click" />
  29. </Grid>
  30. </Grid>
  31. </phone:PhoneApplicationPage>