MobileCollectionView.xaml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ContentView
  3. xmlns="http://xamarin.com/schemas/2014/forms"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  5. xmlns:ui="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
  6. xmlns:local="clr-namespace:InABox.Mobile"
  7. xmlns:system="clr-namespace:System;assembly=netstandard"
  8. x:Class="InABox.Mobile.MobileCollectionView"
  9. BackgroundColor="Transparent"
  10. x:DataType="local:MobileCollectionView">
  11. <ContentView.Content>
  12. <Grid>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="*"/>
  15. <RowDefinition Height="Auto"/>
  16. </Grid.RowDefinitions>
  17. <RefreshView
  18. x:Name="_refresher"
  19. BackgroundColor="Transparent"
  20. Grid.Row="0"
  21. IsEnabled="False">
  22. <CollectionView
  23. x:Name="_list"
  24. BackgroundColor="Transparent"
  25. ItemSizingStrategy="{Binding HasUnevenRows}"
  26. SelectionMode="None">
  27. <CollectionView.EmptyView>
  28. <ui:MaterialLabel
  29. x:Name="_emptylist"
  30. Text="{Binding EmptyText}"
  31. VerticalOptions="CenterAndExpand"
  32. VerticalTextAlignment="Center"
  33. HorizontalOptions="CenterAndExpand"
  34. HorizontalTextAlignment="Center"
  35. TypeScale="H6"
  36. TextColor="Gray"/>
  37. </CollectionView.EmptyView>
  38. <CollectionView.ItemsLayout>
  39. <LinearItemsLayout ItemSpacing="{Binding Spacing}" Orientation="Vertical" />
  40. </CollectionView.ItemsLayout>
  41. </CollectionView>
  42. </RefreshView>
  43. <local:MobileCard
  44. Grid.Row="1"
  45. x:Name="_refreshcard"
  46. Padding="5">
  47. <Grid>
  48. <Grid.ColumnDefinitions>
  49. <ColumnDefinition Width="*"/>
  50. <ColumnDefinition Width="Auto"/>
  51. <ColumnDefinition Width="*"/>
  52. </Grid.ColumnDefinitions>
  53. <Label
  54. x:Name="_lastupdate"
  55. Grid.Column="0"
  56. HorizontalTextAlignment="Start"
  57. FontSize="Micro"
  58. TextColor="Black"/>
  59. <Label
  60. x:Name="_numrecords"
  61. Grid.Column="1"
  62. HorizontalTextAlignment="Center"
  63. FontSize="Micro"
  64. TextColor="Black"/>
  65. <Label
  66. x:Name="_pulltorefresh"
  67. Grid.Column="2"
  68. HorizontalTextAlignment="End"
  69. FontSize="Micro"
  70. Text="Pull To Refresh"
  71. TextColor="Black"/>
  72. </Grid>
  73. </local:MobileCard>
  74. </Grid>
  75. </ContentView.Content>
  76. </ContentView>