<?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.MonsterPage">
    <ContentPage.Content>
        <ListView x:Name="mainListView" ItemsSource="{Binding .}"
                  BackgroundColor="White"
                  HasUnevenRows="True"
                  IsPullToRefreshEnabled="True" IsRefreshing="True"
                  Refreshing="mainListView_Refreshing" ItemTapped="mainListView_ItemTapped">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <ViewCell>
                        <StackLayout Orientation="Horizontal" Padding="6,6">
                            <Image Source="{Binding Portrait}" WidthRequest="50"/>
                            <Label Text="{Binding Name}" TextColor="DimGray" FontSize="Large" VerticalTextAlignment="Center" HorizontalOptions="StartAndExpand"/>
                            <Label Text="{Binding HP, StringFormat='HP: {0}'}" TextColor="DimGray" FontSize="Medium" VerticalTextAlignment="Center" HorizontalOptions="End"/>
                            <Label Text="{Binding MP, StringFormat='MP: {0}'}" TextColor="DimGray" FontSize="Medium" VerticalTextAlignment="Center" HorizontalOptions="End"/>
                        </StackLayout>
                    </ViewCell>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
    </ContentPage.Content>
</ContentPage>