SiteManufacturingSetouts.xaml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ContentView xmlns="http://xamarin.com/schemas/2014/forms"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4. xmlns:local="clr-namespace:PRS.Mobile;assembly=PRS.Mobile"
  5. xmlns:mobile="clr-namespace:InABox.Mobile;assembly=InABox.Mobile.Shared"
  6. x:Class="PRS.Mobile.SiteManufacturingSetouts">
  7. <ContentView.Resources>
  8. <DataTemplate x:Key="SetoutTemplate" x:DataType="local:SetoutShell">
  9. <mobile:MobileCard
  10. Padding="2"
  11. HeightRequest="40"
  12. IsClickable="True"
  13. Clicked="ListView_Tapped">
  14. <Grid RowSpacing="0" ColumnSpacing="0">
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="Auto"/>
  17. <RowDefinition Height="*"/>
  18. </Grid.RowDefinitions>
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition Width="*"/>
  21. </Grid.ColumnDefinitions>
  22. <Label
  23. Grid.Row="0"
  24. Grid.Column="0"
  25. Text="{Binding Number}"
  26. FontAttributes="Bold"
  27. FontSize="Small"
  28. VerticalTextAlignment="Center"
  29. LineBreakMode="TailTruncation"
  30. TextColor="Black"/>
  31. <Label
  32. Grid.Row="1"
  33. Grid.Column="0"
  34. FontSize="Small"
  35. VerticalTextAlignment="Start"
  36. Text="{Binding Description}"
  37. LineBreakMode="WordWrap"
  38. TextColor="Black"/>
  39. </Grid>
  40. </mobile:MobileCard>
  41. </DataTemplate>
  42. </ContentView.Resources>
  43. <ContentView.Content>
  44. <Grid>
  45. <Grid.RowDefinitions>
  46. <RowDefinition Height="Auto"/>
  47. <RowDefinition Height="Auto"/>
  48. <RowDefinition Height="*"/>
  49. </Grid.RowDefinitions>
  50. <mobile:MobileSearchBar
  51. x:Name="_search"
  52. Grid.Row="1"
  53. TextChanged="_search_OnTextChanged" />
  54. <mobile:MobileCollectionView
  55. x:Name="_items"
  56. Grid.Row="2"
  57. PullToRefresh="True"
  58. RefreshRequested="_items_OnRefreshRequested"
  59. ShowRecordCount="True"
  60. ItemTemplate="{StaticResource SetoutTemplate}">
  61. </mobile:MobileCollectionView>
  62. </Grid>
  63. </ContentView.Content>
  64. </ContentView>