GPSInfoPage.xaml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ContentPage
  3. xmlns="http://xamarin.com/schemas/2014/forms"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  5. xmlns:maps="clr-namespace:Xamarin.Forms.Maps;assembly=Xamarin.Forms.Maps"
  6. xmlns:material="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
  7. material:MaterialNavigationPage.AppBarTitleTextFontSize="16.0"
  8. x:Class="comal.timesheets.GPSInfoPage">
  9. <ContentPage.Content>
  10. <Grid VerticalOptions="Fill" Margin="5">
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="70"/>
  13. <ColumnDefinition Width="*"/>
  14. <ColumnDefinition Width="80"/>
  15. </Grid.ColumnDefinitions>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="30" />
  18. <RowDefinition Height="*" />
  19. <RowDefinition Height="40" />
  20. <RowDefinition Height="Auto" />
  21. </Grid.RowDefinitions>
  22. <!-- <maps:Map WidthRequest="320" HeightRequest="200"
  23. x:Name="Map"
  24. IsShowingUser="true"
  25. MapType="Hybrid"
  26. /> -->
  27. <Frame BorderColor="Black" Grid.Row="0" Grid.Column="0" CornerRadius="0" HasShadow="false" BackgroundColor="Silver" Margin="0" Padding="0">
  28. <Label Text="Job" Margin="0" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" BackgroundColor="Transparent"/>
  29. </Frame>
  30. <Frame BorderColor="Black" Grid.Row="0" Grid.Column="1" CornerRadius="0" HasShadow="false" BackgroundColor="Silver" Margin="0" Padding="0">
  31. <Label Text="Name" Margin="5,0,0,0" HorizontalTextAlignment="Start" VerticalTextAlignment="Center" BackgroundColor="Transparent"/>
  32. </Frame>
  33. <Frame BorderColor="Black" Grid.Row="0" Grid.Column="2" CornerRadius="0" HasShadow="false" BackgroundColor="Silver" Margin="0" Padding="0">
  34. <Label Text="KM" Margin="0" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" BackgroundColor="Transparent"/>
  35. </Frame>
  36. <Frame BorderColor="Black" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" CornerRadius="0" HasShadow="false" BackgroundColor="Silver" Padding="0" VerticalOptions="FillAndExpand">
  37. <ListView x:Name="JobList" ItemsSource="{Binding Items}" VerticalOptions="FillAndExpand" CachingStrategy="RecycleElement" Margin="1">
  38. <ListView.ItemTemplate>
  39. <DataTemplate>
  40. <ViewCell>
  41. <Grid>
  42. <Grid.ColumnDefinitions>
  43. <ColumnDefinition Width="70" />
  44. <ColumnDefinition Width="*" />
  45. <ColumnDefinition Width="80" />
  46. </Grid.ColumnDefinitions>
  47. <Grid.RowDefinitions>
  48. <RowDefinition Height="Auto"/>
  49. </Grid.RowDefinitions>
  50. <Label Text="{Binding JobNumber}" Grid.Column="0" Margin="10,0,0,0" VerticalTextAlignment="Center" HorizontalTextAlignment="Center"/>
  51. <Label Text="{Binding JobName}" Grid.Column="1" VerticalTextAlignment="Center" />
  52. <Label Text="{Binding Distance, StringFormat='{}{0:F2\}'}" Grid.Column="2" VerticalTextAlignment="Center" HorizontalTextAlignment="Center"/>
  53. </Grid>
  54. </ViewCell>
  55. </DataTemplate>
  56. </ListView.ItemTemplate>
  57. </ListView>
  58. </Frame>
  59. <Label x:Name="TimeStamp" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" HorizontalTextAlignment="Center" VerticalTextAlignment="Center"/>
  60. <Label x:Name="Location" Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" HorizontalTextAlignment="Center" VerticalTextAlignment="Center"/>
  61. </Grid>
  62. </ContentPage.Content>
  63. </ContentPage>