<?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"
             x:Class="MobileApp.Views.Pois"
             Title="List of POIs">
    <ContentPage.Content>
        <StackLayout>
            <ListView x:Name="ListViewPois">
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <ViewCell>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="50"/>
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="50"/>
                                </Grid.ColumnDefinitions>

                                <Image Source="{Binding typeImage}"  WidthRequest="50"  HeightRequest="50" Grid.Column="0" />
                                <Button Text="{Binding Name}"
                                        Clicked="PoitButtonClicked" 
                                           Command="{Binding ClickCommand}"
                                        CommandParameter="{Binding Id}" Grid.Column="1" />
                                <Image Source="{Binding recommendedImage}"  WidthRequest="50" HeightRequest="50" Grid.Column="2" />
                            </Grid>
                        </ViewCell>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>
        </StackLayout>
    </ContentPage.Content>
</ContentPage>