CategoryPage.xaml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <phone:PhoneApplicationPage
  2. x:Class="WindowsPhoneRecipes.CategoryPage"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  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" FontFamily="{StaticResource PhoneFontFamilyNormal}"
  8. xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
  9. FontSize="{StaticResource PhoneFontSizeNormal}"
  10. Foreground="{StaticResource PhoneForegroundBrush}"
  11. SupportedOrientations="Portrait" Orientation="Portrait"
  12. mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
  13. shell:SystemTray.IsVisible="True"
  14. x:Name="pageRoot">
  15. <!--LayoutRoot contains the root grid where all other page content is placed-->
  16. <Grid x:Name="LayoutRoot" Background="Transparent">
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="Auto"/>
  19. <RowDefinition Height="*"/>
  20. </Grid.RowDefinitions>
  21. <!--TitlePanel contains the name of the application and page title-->
  22. <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="24,24,0,12">
  23. <TextBlock x:Name="ApplicationTitle" Text="Windows Phone 7 State Manager" Style="{StaticResource PhoneTextNormalStyle}"/>
  24. <TextBlock x:Name="PageTitle" Text="Category Details" Margin="-3,-8,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
  25. </StackPanel>
  26. <!--ContentPanel - place additional content here-->
  27. <StackPanel x:Name="ContentPanel" Grid.Row="1">
  28. <StackPanel Orientation="Horizontal">
  29. <TextBlock Text="Category " />
  30. <TextBlock Text="{Binding Category}" />
  31. </StackPanel>
  32. <Button Content="Item 1" Name="btnItem1" Click="btnNext_Click" />
  33. <Button Content="Item 2" Name="btnItem2" Click="btnNext_Click" />
  34. <Canvas Height="150"></Canvas>
  35. <Button Content="Return to Category List" Name="btnCategoryList" Click="btnCategoryList_Click" />
  36. <Button Content="Return to Menu" Name="btnMenu" Click="btnMenu_Click" />
  37. </StackPanel>
  38. </Grid>
  39. <phone:PhoneApplicationPage.ApplicationBar>
  40. <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
  41. <shell:ApplicationBarIconButton x:Name="appbar_button1" IconUri="/Images/ArrowImg.png" Text="Button 1"></shell:ApplicationBarIconButton>
  42. <shell:ApplicationBarIconButton x:Name="appbar_button2" IconUri="/Images/ArrowImg.png" Text="Button 2"></shell:ApplicationBarIconButton>
  43. <shell:ApplicationBar.MenuItems>
  44. <shell:ApplicationBarMenuItem x:Name="menuItem1" Text="MenuItem 1"></shell:ApplicationBarMenuItem>
  45. <shell:ApplicationBarMenuItem x:Name="menuItem2" Text="MenuItem 2"></shell:ApplicationBarMenuItem>
  46. </shell:ApplicationBar.MenuItems>
  47. </shell:ApplicationBar>
  48. </phone:PhoneApplicationPage.ApplicationBar>
  49. </phone:PhoneApplicationPage>