Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.75 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <mvx:MvxContentPage xmlns="http://xamarin.com/schemas/2014/forms"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4. x:Class="Kina.Mobile.Core.Pages.ShowsView"
  5. xmlns:res="clr-namespace:Kina.Mobile.Core.Resources;assembly=Kina.Mobile.Core"
  6. xmlns:mvx="clr-namespace:MvvmCross.Forms.Core;assembly=MvvmCross.Forms"
  7. xmlns:xlf="clr-namespace:XLabs.Forms.Controls;assembly=XLabs.Forms"
  8. xmlns:pvm="clr-namespace:Kina.Mobile.Core.ViewModels;assembly=Kina.Mobile.Core"
  9. Title="Shows">
  10. <ContentPage.Resources>
  11. <ResourceDictionary>
  12. <Style x:Key="CityTitle" TargetType="Button">
  13. <Setter Property="BackgroundColor" Value="#fcca01"/>
  14. <Setter Property="TextColor" Value="Black" />
  15. <Setter Property="BorderRadius" Value="10"/>
  16. <Setter Property="FontSize" Value="12" />
  17. </Style>
  18. <Style x:Key="CityHeader" TargetType="Button">
  19. <Setter Property="BackgroundColor" Value="#404040"/>
  20. <Setter Property="TextColor" Value="Orange" />
  21. <Setter Property="BorderRadius" Value="0"/>
  22. <Setter Property="FontSize" Value="9" />
  23. </Style>
  24. <Style x:Key="CityText" TargetType="Button">
  25. <Setter Property="BackgroundColor" Value="#404040"/>
  26. <Setter Property="TextColor" Value="Black" />
  27. <Setter Property="BorderRadius" Value="0"/>
  28. <Setter Property="FontSize" Value="9" />
  29. </Style>
  30. <Style x:Key="MultiHeader" TargetType="Button">
  31. <Setter Property="BackgroundColor" Value="#404040"/>
  32. <Setter Property="TextColor" Value="Magenta" />
  33. <Setter Property="BorderRadius" Value="0"/>
  34. <Setter Property="FontSize" Value="9" />
  35. </Style>
  36. </ResourceDictionary>
  37. </ContentPage.Resources>
  38. <StackLayout BackgroundColor="#404040">
  39. <StackLayout>
  40. <Label FontSize="12" Text="Shows" XAlign="Center" BackgroundColor="#808000"/>
  41. </StackLayout>
  42. <ScrollView>
  43. <StackLayout>
  44. <Label Text="Multikino" BackgroundColor="MediumVioletRed"/>
  45. <xlf:RepeaterView x:TypeArguments="pvm:ShowsMovieModel" ItemsSource="{Binding Movies}">
  46. <xlf:RepeaterView.ItemTemplate>
  47. <DataTemplate>
  48. <ContentView>
  49. <ContentView.GestureRecognizers>
  50. <TapGestureRecognizer NumberOfTapsRequired="1" Command="{Binding GoToMovieViewCommand}"/>
  51. </ContentView.GestureRecognizers>
  52. <Grid RowSpacing="0">
  53. <Grid.ColumnDefinitions>
  54. <ColumnDefinition Width="*"/>
  55. <ColumnDefinition Width="14"/>
  56. <ColumnDefinition Width="14"/>
  57. <ColumnDefinition Width="14"/>
  58. <ColumnDefinition Width="14"/>
  59. <ColumnDefinition Width="14"/>
  60. </Grid.ColumnDefinitions>
  61. <Grid.RowDefinitions>
  62. <RowDefinition Height="*"/>
  63. <RowDefinition Height="*"/>
  64. </Grid.RowDefinitions>
  65. <Button Text = "{Binding Title}" Grid.Row="0" Grid.Column ="0"
  66. Style="{StaticResource CityTitle}" Command ="{Binding GoToMovieViewCommand}" />
  67.  
  68. <Image Source="{res:ImageResource Kina.Mobile.Core.Resources.starOutlineMicro.png}" Grid.Row="0" Grid.Column="1"/>
  69. <Image Source="{res:ImageResource Kina.Mobile.Core.Resources.starMarkedMicro.png}"
  70. IsVisible="{Binding IsStarredOne}" Grid.Row="0" Grid.Column="1"/>
  71. <Image Source="{res:ImageResource Kina.Mobile.Core.Resources.starOutlineMicro.png}" Grid.Row="0" Grid.Column="2"/>
  72. <Image Source="{res:ImageResource Kina.Mobile.Core.Resources.starMarkedMicro.png}"
  73. IsVisible="{Binding IsStarredTwo}" Grid.Row="0" Grid.Column="2"/>
  74. <Image Source="{res:ImageResource Kina.Mobile.Core.Resources.starOutlineMicro.png}" Grid.Row="0" Grid.Column="3"/>
  75. <Image Source="{res:ImageResource Kina.Mobile.Core.Resources.starMarkedMicro.png}"
  76. IsVisible="{Binding IsStarredThree}" Grid.Row="0" Grid.Column="3"/>
  77. <Image Source="{res:ImageResource Kina.Mobile.Core.Resources.starOutlineMicro.png}" Grid.Row="0" Grid.Column="4"/>
  78. <Image Source="{res:ImageResource Kina.Mobile.Core.Resources.starMarkedMicro.png}"
  79. IsVisible="{Binding IsStarredFour}" Grid.Row="0" Grid.Column="4"/>
  80. <Image Source="{res:ImageResource Kina.Mobile.Core.Resources.starOutlineMicro.png}" Grid.Row="0" Grid.Column="5"/>
  81. <Image Source="{res:ImageResource Kina.Mobile.Core.Resources.starMarkedMicro.png}"
  82. IsVisible="{Binding IsStarredFive}" Grid.Row="0" Grid.Column="5"/>
  83. <ScrollView Orientation="Horizontal" Grid.Column="0" Grid.ColumnSpan="6" Grid.Row="1">
  84. <xlf:RepeaterView x:TypeArguments="pvm:ShowsShowsModel" ItemsSource="{Binding Shows}" Orientation="Horizontal">
  85. <xlf:RepeaterView.ItemTemplate>
  86. <DataTemplate>
  87. <Label Text="{Binding Time}" Margin="2, 0" MinimumWidthRequest="40"/>
  88.  
  89. </DataTemplate>
  90. </xlf:RepeaterView.ItemTemplate>
  91. </xlf:RepeaterView>
  92. </ScrollView>
  93. </Grid>
  94. </ContentView>
  95. </DataTemplate>
  96. </xlf:RepeaterView.ItemTemplate>
  97. </xlf:RepeaterView>
  98. </StackLayout>
  99. </ScrollView>
  100. </StackLayout>
  101. </mvx:MvxContentPage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement