Advertisement
Guest User

xaml

a guest
Apr 15th, 2018
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.43 KB | None | 0 0
  1. <Page
  2. x:Class="MovieLibraryApp.Views.MovieDetailsPage"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:local="using:MovieLibraryApp.Views"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:model="using:MovieLibrary.Models.Model"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. mc:Ignorable="d">
  10.  
  11. <RelativePanel Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
  12.  
  13. <Image
  14. Name="BannerImage"
  15. RelativePanel.AlignLeftWithPanel="True"
  16. RelativePanel.AlignRightWithPanel="True"
  17. Stretch="UniformToFill"
  18. Height="150"
  19. Source="/Assets/banner.jpg"
  20. />
  21. <TextBlock
  22. FontFamily="/Assets/Fonts/Lato/Lato-Bold.tff#Lato"
  23. FontSize="25"
  24. RelativePanel.AlignBottomWith="BannerImage"
  25. Name="BannerTitle"
  26. Margin="0,0,60,30"
  27. RelativePanel.AlignRightWithPanel="True"
  28. Foreground="#f5f5f5"
  29. Text="Warcraft"
  30. />
  31. <Grid
  32. RelativePanel.Below="BannerImage"
  33. RelativePanel.AlignHorizontalCenterWith="BannerImage">
  34. <GridView
  35. Name="MainGrid">
  36. <GridView.ItemTemplate>
  37. <DataTemplate x:DataType="model:Movie">
  38. <StackPanel
  39. Name="BannerPanel"
  40. CornerRadius="5"
  41. Orientation="Horizontal"
  42. Margin="60,45,0,0"
  43. HorizontalAlignment="Right">
  44. <Image
  45. Name="MoviePosterImage"
  46. Stretch="UniformToFill"
  47. Source="{Binding ImageReference}"
  48. Width="150"
  49. Height="250"/>
  50.  
  51. <StackPanel
  52. CornerRadius="5"
  53. Height="250"
  54. Width="500"
  55. Margin="60,45,0,0"
  56. RelativePanel.RightOf="BannerPanel"
  57. RelativePanel.AlignVerticalCenterWith="BannerPanel"
  58. HorizontalAlignment="Right">
  59.  
  60. <Border
  61. Background="#424242">
  62. <TextBlock
  63. Name="MovieTitle"
  64. FontFamily="/Assets/Fonts/Lato/Lato-Bold.tff#Lato"
  65. Foreground="#fafafa"
  66. Padding="20,10,0,10"
  67. Text="{Binding MovieName}"
  68. FontSize="30"
  69. TextAlignment="Center"
  70. />
  71. </Border>
  72. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  73. <TextBlock
  74. Name="PgRating"
  75. FontFamily="/Assets/Fonts/Montserrat/Montserrat-Regular.ttf#Montserrat"
  76. FontSize="11"
  77. Margin="5,5,5,5"
  78. Text="{Binding Pg}"/>
  79. <TextBlock
  80. FontSize="12"
  81. Margin="5,2,5,5"
  82. Text="|"/>
  83. <TextBlock
  84. Name="Genre"
  85. FontFamily="/Assets/Fonts/Montserrat/Montserrat-Regular.ttf#Montserrat"
  86. FontSize="11"
  87. Margin="5,5,5,5"
  88. Text="{Binding Genre}"/>
  89. <TextBlock
  90. FontSize="12"
  91. Margin="5,2,5,5"
  92. Text="|"/>
  93. <TextBlock
  94. Name="ReleaseDate"
  95. FontFamily="/Assets/Fonts/Montserrat/Montserrat-Regular.ttf#Montserrat"
  96. FontSize="11"
  97. Margin="5,5,5,5"
  98. Text="{Binding ReleaseDate}"/>
  99. </StackPanel>
  100. <TextBlock
  101. FontFamily="/Assets/Fonts/Montserrat/Montserrat-Regular.ttf#Montserrat"
  102. Margin="10,10,10,10"
  103. TextWrapping="Wrap"
  104. Text="{Binding Description}" />
  105. </StackPanel>
  106. </StackPanel>
  107. </DataTemplate>
  108. </GridView.ItemTemplate>
  109. </GridView>
  110. </Grid>
  111. </RelativePanel>
  112. </Page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement