<?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="Navigator.Views.ItemsPage"
             Title="{Binding Title}"
             x:Name="BrowseItemsPage">

    <!--<ContentPage.ToolbarItems>
        <ToolbarItem Text="Add" Clicked="AddItem_Clicked" />
    </ContentPage.ToolbarItems>-->

    <!--<RefreshView IsRefreshing="{Binding IsBusy, Mode=TwoWay}" Command="{Binding LoadItemsCommand}">-->
      <!--<RefreshView IsRefreshing="{Binding IsBusy, Mode=TwoWay}" Command="{Binding LoadItemsCommand}">-->
    <RefreshView IsEnabled="False">
      <CollectionView x:Name="ItemsCollectionView" ItemsSource="{Binding Commands}">
      <!--<d:CollectionView x:Name="ItemsCollectionView" ItemsSource="{Binding Commands}">-->

      <!--<d:CollectionView.ItemsSource>
        <x:Array Type="{x:Type x:String}">
          <x:String>First Item</x:String>
          <x:String>Second Item</x:String>
          <x:String>Third Item</x:String>
          <x:String>Fourth Item</x:String>
          <x:String>Fifth Item</x:String>
          <x:String>Sixth Item</x:String>
        </x:Array>
      </d:CollectionView.ItemsSource>-->
      <CollectionView.ItemTemplate>
        <DataTemplate>
          <StackLayout Padding="10">
            <Label Text="{Binding Title}" 
                                d:Text="{Binding .}"
                                LineBreakMode="NoWrap" 
                                Style="{DynamicResource ListItemTextStyle}" 
                                FontSize="16" />
            <Label Text="{Binding Title}" 
                                d:Text="Item descripton"
                                LineBreakMode="NoWrap"
                                Style="{DynamicResource ListItemDetailTextStyle}"
                                FontSize="13" />
            <StackLayout.GestureRecognizers>
              <TapGestureRecognizer NumberOfTapsRequired="1" Tapped="OnItemSelected"></TapGestureRecognizer>
            </StackLayout.GestureRecognizers>
          </StackLayout>
        </DataTemplate>
      </CollectionView.ItemTemplate>
    </CollectionView>
  </RefreshView>
</ContentPage>