<?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.Countries"
             Title="Countries">
    <ContentPage.Content>
        <StackLayout>
            <ListView x:Name="ListViewCountries">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <ViewCell>
                            <Button Text="{Binding Name}"
                            Clicked="CountryButtonClicked" 
                            Command="{Binding CountryButtonClicked}"
                            CommandParameter="{Binding Id}" />
                        </ViewCell>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
        </StackLayout>
    </ContentPage.Content>
</ContentPage>