MobileListView.xaml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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:MobileListView">
  11. <ContentView.Content>
  12. <Grid>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="*"/>
  15. <RowDefinition Height="Auto"/>
  16. </Grid.RowDefinitions>
  17. <ListView
  18. x:Name="_list"
  19. BackgroundColor="Transparent"
  20. SelectionMode="None"
  21. SeparatorVisibility="Default"
  22. SeparatorColor="Transparent"
  23. IsPullToRefreshEnabled="{Binding PullToRefresh}">
  24. </ListView>
  25. <local:MobileCard
  26. Grid.Row="1"
  27. x:Name="_refreshcard"
  28. Padding="5">
  29. <Grid>
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="*"/>
  32. <ColumnDefinition Width="Auto"/>
  33. <ColumnDefinition Width="*"/>
  34. </Grid.ColumnDefinitions>
  35. <Label
  36. x:Name="_lastupdate"
  37. Grid.Column="0"
  38. HorizontalTextAlignment="Start"
  39. FontSize="Micro"
  40. TextColor="Black"/>
  41. <Label
  42. x:Name="_numrecords"
  43. Grid.Column="1"
  44. HorizontalTextAlignment="Center"
  45. FontSize="Micro"
  46. TextColor="Black"/>
  47. <Label
  48. x:Name="_pulltorefresh"
  49. Grid.Column="2"
  50. HorizontalTextAlignment="End"
  51. FontSize="Micro"
  52. Text="Pull To Refresh"
  53. TextColor="Black"/>
  54. </Grid>
  55. </local:MobileCard>
  56. </Grid>
  57. </ContentView.Content>
  58. </ContentView>