<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="XamarinMSSQL.Views.SqlPage">
    <ContentPage.Content>
        <ListView x:Name="mainListView" ItemsSource="{Binding .}"
                  HasUnevenRows="True"
                  IsPullToRefreshEnabled="True" IsRefreshing="True"
                  Refreshing="mainListView_Refreshing" ItemTapped="mainListView_ItemTapped">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <ViewCell>
                        <StackLayout Orientation="Horizontal" Padding="6, 6">
                            <Label Text="{Binding Name}" FontSize="Large" VerticalTextAlignment="Center" HorizontalOptions="StartAndExpand"/>
                            <Label Text="{Binding Job}" FontSize="Medium" HorizontalOptions="End" Padding="0,0,30,0"/>
                            <Label Text="{Binding HireDate, StringFormat='{0:yyyy-MM-dd}'}" HorizontalOptions="End"/>
                        </StackLayout>
                    </ViewCell>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
    </ContentPage.Content>
</ContentPage>