JobSelectionPage.xaml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:customcontrols="clr-namespace:comal.timesheets.CustomControls" xmlns:timesheets="clr-namespace:comal.timesheets"
  4. x:Class="comal.timesheets.CustomControls.JobSelectionPage">
  5. <ContentPage.Content>
  6. <StackLayout>
  7. <Editor x:Name="searchEdt" Placeholder="Search" TextChanged="SearchEdt_Changed"
  8. Margin="5"/>
  9. <timesheets:FilterOptionsControl x:Name="filterOptionsControl"/>
  10. <ListView x:Name="jobListView" HasUnevenRows="True" CachingStrategy="RecycleElement">
  11. <ListView.ItemTemplate>
  12. <DataTemplate>
  13. <ViewCell Tapped="Job_Clicked">
  14. <Frame BorderColor="Black" Margin="2" CornerRadius="10" Padding="3">
  15. <Grid>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="auto"/>
  18. <RowDefinition Height="auto"/>
  19. </Grid.RowDefinitions>
  20. <Grid.ColumnDefinitions>
  21. <ColumnDefinition Width="auto"/>
  22. <ColumnDefinition Width="*"/>
  23. </Grid.ColumnDefinitions>
  24. <Button Grid.Row="0" Grid.RowSpan="2" Grid.Column="0" ImageSource="gear.png" HeightRequest="25"
  25. WidthRequest="60"
  26. BackgroundColor="{Binding Color}" CornerRadius="10" Margin="3"/>
  27. <Label HorizontalOptions="Start" VerticalOptions="Center" Grid.Row="0" Grid.Column="1" Margin="1"
  28. Text="{Binding JobNumber}" FontAttributes="Bold" FontSize="Large"/>
  29. <Label HorizontalOptions="Start" VerticalOptions="Center" Grid.Row="1" Grid.Column="1"
  30. Margin="1" LineBreakMode="WordWrap"
  31. Text="{Binding Name}" FontSize="Medium"/>
  32. </Grid>
  33. </Frame>
  34. </ViewCell>
  35. </DataTemplate>
  36. </ListView.ItemTemplate>
  37. </ListView>
  38. </StackLayout>
  39. </ContentPage.Content>
  40. </ContentPage>