123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?xml version="1.0" encoding="UTF-8"?>
- <ContentPage
- xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:maps="clr-namespace:Xamarin.Forms.Maps;assembly=Xamarin.Forms.Maps"
- xmlns:material="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
- material:MaterialNavigationPage.AppBarTitleTextFontSize="16.0"
-
- x:Class="comal.timesheets.GPSInfoPage">
- <ContentPage.Content>
- <Grid VerticalOptions="Fill" Margin="5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="70"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="80"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="30" />
- <RowDefinition Height="*" />
- <RowDefinition Height="40" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <!-- <maps:Map WidthRequest="320" HeightRequest="200"
- x:Name="Map"
- IsShowingUser="true"
- MapType="Hybrid"
- /> -->
-
- <Frame BorderColor="Black" Grid.Row="0" Grid.Column="0" CornerRadius="0" HasShadow="false" BackgroundColor="Silver" Margin="0" Padding="0">
- <Label Text="Job" Margin="0" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" BackgroundColor="Transparent"/>
- </Frame>
- <Frame BorderColor="Black" Grid.Row="0" Grid.Column="1" CornerRadius="0" HasShadow="false" BackgroundColor="Silver" Margin="0" Padding="0">
- <Label Text="Name" Margin="5,0,0,0" HorizontalTextAlignment="Start" VerticalTextAlignment="Center" BackgroundColor="Transparent"/>
- </Frame>
- <Frame BorderColor="Black" Grid.Row="0" Grid.Column="2" CornerRadius="0" HasShadow="false" BackgroundColor="Silver" Margin="0" Padding="0">
- <Label Text="KM" Margin="0" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" BackgroundColor="Transparent"/>
- </Frame>
- <Frame BorderColor="Black" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" CornerRadius="0" HasShadow="false" BackgroundColor="Silver" Padding="0" VerticalOptions="FillAndExpand">
- <ListView x:Name="JobList" ItemsSource="{Binding Items}" VerticalOptions="FillAndExpand" CachingStrategy="RecycleElement" Margin="1">
- <ListView.ItemTemplate>
- <DataTemplate>
- <ViewCell>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="70" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="80" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <Label Text="{Binding JobNumber}" Grid.Column="0" Margin="10,0,0,0" VerticalTextAlignment="Center" HorizontalTextAlignment="Center"/>
- <Label Text="{Binding JobName}" Grid.Column="1" VerticalTextAlignment="Center" />
- <Label Text="{Binding Distance, StringFormat='{}{0:F2\}'}" Grid.Column="2" VerticalTextAlignment="Center" HorizontalTextAlignment="Center"/>
- </Grid>
- </ViewCell>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Frame>
-
- <Label x:Name="TimeStamp" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" HorizontalTextAlignment="Center" VerticalTextAlignment="Center"/>
-
- <Label x:Name="Location" Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" HorizontalTextAlignment="Center" VerticalTextAlignment="Center"/>
-
- </Grid>
- </ContentPage.Content>
- </ContentPage>
|