ListSelectionPage.xaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <mobile:MobilePage xmlns:local="clr-namespace:PRS.Mobile" xmlns="http://xamarin.com/schemas/2014/forms"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4. xmlns:mobile="clr-namespace:InABox.Mobile;assembly=InABox.Mobile.Shared"
  5. x:Class="PRS.Mobile.ListSelectionPage">
  6. <mobile:MobilePage.PageContent>
  7. <Grid Margin="5" RowSpacing="0">
  8. <Grid.RowDefinitions>
  9. <RowDefinition Height="auto"/>
  10. <RowDefinition Height="auto"/>
  11. <RowDefinition Height="*"/>
  12. </Grid.RowDefinitions>
  13. <local:FilterOptionsControl Grid.Row="0" IsVisible="false" x:Name="filterOptionsControl"/>
  14. <Frame Grid.Row="1" HasShadow="False" BorderColor="Gray" CornerRadius="5" Padding="0" Margin="1" BackgroundColor="White">
  15. <Entry x:Name="searchEnt" TextChanged="SearchEnt_Changed" Placeholder="Search" BackgroundColor="LightYellow"/>
  16. </Frame>
  17. <ListView Grid.Row="2" HasUnevenRows="True"
  18. x:Name="listView"
  19. BackgroundColor="Transparent"
  20. SeparatorVisibility="None">
  21. <ListView.ItemTemplate>
  22. <DataTemplate>
  23. <ViewCell Tapped="Item_Tapped">
  24. <Frame HasShadow="False" BorderColor="Gray" CornerRadius="5" Padding="3" Margin="1" BackgroundColor="White">
  25. <Grid>
  26. <Grid.RowDefinitions>
  27. <RowDefinition Height="auto"/>
  28. <RowDefinition Height="{Binding ExtraRowHeight}"/>
  29. </Grid.RowDefinitions>
  30. <Label Grid.Row="0"
  31. Text="{Binding Value}" HorizontalOptions="Center" LineBreakMode="CharacterWrap" Margin="5"
  32. HorizontalTextAlignment="Center"
  33. VerticalOptions="Center" FontSize="Small"
  34. TextColor="Black"
  35. />
  36. <Image Grid.Row="1"
  37. Source="{Binding ImageSource}" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand"/>
  38. </Grid>
  39. </Frame>
  40. </ViewCell>
  41. </DataTemplate>
  42. </ListView.ItemTemplate>
  43. </ListView>
  44. </Grid>
  45. </mobile:MobilePage.PageContent>
  46. </mobile:MobilePage>