MobileListView.xaml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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.MobileListView"
  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. <!-- ItemSizingStrategy="{Binding HasUnevenRows}" -->
  23. <ListView
  24. x:Name="_list"
  25. BackgroundColor="Transparent"
  26. SelectionMode="None"
  27. SeparatorVisibility="Default"
  28. SeparatorColor="Transparent">
  29. <!-- <CollectionView.EmptyView> -->
  30. <!-- <ui:MaterialLabel -->
  31. <!-- x:Name="_emptylist" -->
  32. <!-- Text="{Binding EmptyText}" -->
  33. <!-- VerticalOptions="CenterAndExpand" -->
  34. <!-- VerticalTextAlignment="Center" -->
  35. <!-- HorizontalOptions="CenterAndExpand" -->
  36. <!-- HorizontalTextAlignment="Center" -->
  37. <!-- TypeScale="H6" -->
  38. <!-- TextColor="Gray"/> -->
  39. <!-- </CollectionView.EmptyView> -->
  40. <!-- <CollectionView.ItemsLayout> -->
  41. <!-- <LinearItemsLayout ItemSpacing="{Binding Spacing}" Orientation="Vertical" /> -->
  42. <!-- </CollectionView.ItemsLayout> -->
  43. </ListView>
  44. </RefreshView>
  45. <local:MobileCard
  46. Grid.Row="1"
  47. x:Name="_refreshcard"
  48. Padding="5">
  49. <Grid>
  50. <Grid.ColumnDefinitions>
  51. <ColumnDefinition Width="*"/>
  52. <ColumnDefinition Width="Auto"/>
  53. <ColumnDefinition Width="*"/>
  54. </Grid.ColumnDefinitions>
  55. <Label
  56. x:Name="_lastupdate"
  57. Grid.Column="0"
  58. HorizontalTextAlignment="Start"
  59. FontSize="Micro"
  60. TextColor="Black"/>
  61. <Label
  62. x:Name="_numrecords"
  63. Grid.Column="1"
  64. HorizontalTextAlignment="Center"
  65. FontSize="Micro"
  66. TextColor="Black"/>
  67. <Label
  68. x:Name="_pulltorefresh"
  69. Grid.Column="2"
  70. HorizontalTextAlignment="End"
  71. FontSize="Micro"
  72. Text="Pull To Refresh"
  73. TextColor="Black"/>
  74. </Grid>
  75. </local:MobileCard>
  76. </Grid>
  77. </ContentView.Content>
  78. </ContentView>