MobileList.xaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. <RefreshView
  13. x:Name="_refresher"
  14. BackgroundColor="Transparent">
  15. <Grid>
  16. <CollectionView
  17. x:Name="_list"
  18. BackgroundColor="Transparent"
  19. ItemSizingStrategy="{Binding HasUnevenRows}"
  20. SelectionMode="None"
  21. HeightRequest="0"
  22. IsVisible="False">
  23. <CollectionView.ItemsLayout>
  24. <LinearItemsLayout ItemSpacing="{Binding Spacing}" Orientation="Vertical" />
  25. </CollectionView.ItemsLayout>
  26. </CollectionView>
  27. <ui:MaterialLabel
  28. x:Name="_nodata"
  29. Grid.Row="0"
  30. Text="No Data Available"
  31. IsVisible="True"
  32. VerticalOptions="CenterAndExpand"
  33. VerticalTextAlignment="Center"
  34. HorizontalOptions="CenterAndExpand"
  35. HorizontalTextAlignment="Center"
  36. TypeScale="H6"/>
  37. </Grid>
  38. </RefreshView>
  39. </ContentView.Content>
  40. </ContentView>