<?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="LabelledSections.LabelledSectionXaml"
			 Padding="0,20,0,0">

<ListView x:Name="itemListView"
          IsGroupingEnabled="true" 
          ItemTapped="OnItemTapped"
  		  GroupDisplayBinding="{Binding LongTitle}"
  		  GroupShortNameBinding="{Binding Title}"
  		  Header="HEADER"
  		  Footer="FOOTER">
  <ListView.ItemTemplate>
    <DataTemplate> 
      <TextCell Text="{Binding Name}" Detail="{Binding Description}"> 
      </TextCell> 
    </DataTemplate>
  </ListView.ItemTemplate>
</ListView>


    <!-- this works on iOS 7.1 BUT the GroupHeaderTemplate 
    doesn't show on iOS 8.2 -->
<!--    <ListView x:Name="itemListView"
              IsGroupingEnabled="true" 
              ItemTapped="OnItemTapped"
      		  >
      <ListView.GroupHeaderTemplate>
        <DataTemplate>
          <ViewCell>
            <Label Text="{Binding Title}" TextColor="Blue" />
          </ViewCell>
        </DataTemplate>
      </ListView.GroupHeaderTemplate>
      <ListView.ItemTemplate>
        <DataTemplate> 
          <TextCell Text="{Binding Name}" Detail="{Binding Description}"> 
          </TextCell> 
        </DataTemplate>
      </ListView.ItemTemplate>
    </ListView>-->

</ContentPage>
