ItemPage.xaml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <phone:PhoneApplicationPage
  2. x:Class="WindowsPhoneRecipes.ItemPage"
  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. <!--LayoutRoot contains the root grid where all other 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="24,24,0,12">
  22. <TextBlock x:Name="ApplicationTitle" Text="Navigation Sample" Style="{StaticResource PhoneTextNormalStyle}"/>
  23. <TextBlock x:Name="PageTitle" Text="Item Details" Margin="-3,-8,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
  24. </StackPanel>
  25. <!--ContentPanel - place additional content here-->
  26. <StackPanel x:Name="ContentGrid" Grid.Row="1">
  27. <StackPanel Orientation="Horizontal">
  28. <TextBlock Text="Category " />
  29. <TextBlock Text="{Binding Category}" />
  30. </StackPanel>
  31. <StackPanel Orientation="Horizontal">
  32. <TextBlock Text="Item # " />
  33. <TextBlock Text="{Binding ItemId}" />
  34. </StackPanel>
  35. <TextBlock Text="Item Details Here" />
  36. <Canvas Height="75"></Canvas>
  37. <Button Content="Other Item" Name="btnItem" Click="btnItem_Click" />
  38. <Canvas Height="75"></Canvas>
  39. <Button Content="Return to Category" Name="btnCategory" Click="btnCategory_Click" />
  40. <Button Content="Return to Category List" Name="btnCategoryList" Click="btnCategoryList_Click" />
  41. <Button Content="Return to Menu" Name="btnMenu" Click="btnMenu_Click" />
  42. </StackPanel>
  43. </Grid>
  44. <phone:PhoneApplicationPage.ApplicationBar>
  45. <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
  46. <shell:ApplicationBarIconButton x:Name="appbar_button1" IconUri="/Images/ArrowImg.png" Text="Button 1"></shell:ApplicationBarIconButton>
  47. <shell:ApplicationBarIconButton x:Name="appbar_button2" IconUri="/Images/ArrowImg.png" Text="Button 2"></shell:ApplicationBarIconButton>
  48. <shell:ApplicationBar.MenuItems>
  49. <shell:ApplicationBarMenuItem x:Name="menuItem1" Text="MenuItem 1"></shell:ApplicationBarMenuItem>
  50. <shell:ApplicationBarMenuItem x:Name="menuItem2" Text="MenuItem 2"></shell:ApplicationBarMenuItem>
  51. </shell:ApplicationBar.MenuItems>
  52. </shell:ApplicationBar>
  53. </phone:PhoneApplicationPage.ApplicationBar>
  54. </phone:PhoneApplicationPage>