Skip to content
Permalink
55ffe53e1c
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
34 lines (29 sloc) 1.69 KB
<?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:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:customControls="clr-namespace:HarPadRee.CustomControls"
x:Class="HarPadRee.MillagePage">
<ContentPage.Content>
<StackLayout Margin="10,35,10,10">
<Button Text="Add New Millage" x:Name="AddBtn" Clicked="AddBtn_Clicked"/>
<ListView x:Name="MillageList" HasUnevenRows="True">
<ListView.ItemTemplate>
<DataTemplate>
<customControls:ExtendedViewCell SelectedBackgroundColor="White">
<ViewCell.View>
<StackLayout Orientation="Vertical" Padding="4" Spacing="8">
<Label TextColor="Blue" FontSize="Medium" Text="{Binding Date, StringFormat='Date: {0:dd/MM/yyy}'}" />
<Label TextColor="Black" FontSize="Medium" Text="{Binding Miles, StringFormat='Miles: {0}'}" />
<Label TextColor="Green" FontSize="Medium" Text="{Binding Litres, StringFormat='Litres: {0}'}" />
</StackLayout>
</ViewCell.View>
</customControls:ExtendedViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
</ContentPage.Content>
</ContentPage>