<?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:local="using:MobileApp.Models"
             xmlns:local1="using:MobileApp.Views"
             x:Class="MobileApp.Views.MasterPage"
			 Padding="0,40,0,0"
			 IconImageSource="hamburger.png"
			 Title="Roberto's Agency">
    <StackLayout>
        <ListView x:Name="listView" x:FieldModifier="public" RowHeight="70">
            <ListView.ItemsSource>
                <x:Array Type="{x:Type local:MasterPageItem}">
                    <local:MasterPageItem Title="Home" IconSource="home.png" TargetType="{x:Type local1:Home}" />
                    <local:MasterPageItem Title="Countries" IconSource="countries.png" TargetType="{x:Type local1:Countries}" />
                    <local:MasterPageItem Title="Destinations" IconSource="destinations.png" TargetType="{x:Type local1:Destinations}" />
                    <local:MasterPageItem Title="About" IconSource="about.png" TargetType="{x:Type local1:About}" />
                    <local:MasterPageItem Title="Contacts" IconSource="contact.png" TargetType="{x:Type local1:Contact}" />
                </x:Array>
            </ListView.ItemsSource>
            <ListView.ItemTemplate>
                <DataTemplate>
                    <ViewCell>
                        <Grid Padding="5,10">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="60"/>
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <Image Source="{Binding IconSource}"  WidthRequest="50"  HeightRequest="50" />
                            <Label Grid.Column="1" Text="{Binding Title}" FontSize="20" VerticalTextAlignment="Center"/>
                        </Grid>
                    </ViewCell>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
    </StackLayout>
</ContentPage>
