MobileList.xaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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.MobileList"
  9. BackgroundColor="Transparent"
  10. x:DataType="local:MobileList">
  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="No Data Avalable"
  31. VerticalOptions="CenterAndExpand"
  32. VerticalTextAlignment="Center"
  33. HorizontalOptions="CenterAndExpand"
  34. HorizontalTextAlignment="Center"
  35. TypeScale="H6"/>
  36. </CollectionView.EmptyView>
  37. <CollectionView.ItemsLayout>
  38. <LinearItemsLayout ItemSpacing="{Binding Spacing}" Orientation="Vertical" />
  39. </CollectionView.ItemsLayout>
  40. </CollectionView>
  41. </RefreshView>
  42. <local:MobileCard
  43. Grid.Row="1"
  44. x:Name="_refreshcard"
  45. Padding="5">
  46. <Grid>
  47. <Grid.ColumnDefinitions>
  48. <ColumnDefinition Width="*"/>
  49. <ColumnDefinition Width="Auto"/>
  50. <ColumnDefinition Width="*"/>
  51. </Grid.ColumnDefinitions>
  52. <Label
  53. x:Name="_lastupdate"
  54. Grid.Column="0"
  55. HorizontalTextAlignment="Start"
  56. FontSize="Micro" />
  57. <Label
  58. x:Name="_numrecords"
  59. Grid.Column="1"
  60. HorizontalTextAlignment="Center"
  61. FontSize="Micro"/>
  62. <Label
  63. x:Name="_pulltorefresh"
  64. Grid.Column="2"
  65. HorizontalTextAlignment="End"
  66. FontSize="Micro"
  67. Text="Pull To Refresh"/>
  68. </Grid>
  69. </local:MobileCard>
  70. </Grid>
  71. </ContentView.Content>
  72. </ContentView>