<?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="DevDaysSpeakers.View.SpeakersPage"
             Title="Speakers">

  <StackLayout Spacing="0">
    <Button Text="Sync Speakers" Command="{Binding GetSpeakersCommand}"/>
    
    <ActivityIndicator IsRunning="{Binding IsBusy}" IsVisible="{Binding IsBusy}"/>

    <ListView x:Name="ListViewSpeakers"
              ItemsSource="{Binding Speakers}">
      <ListView.ItemTemplate>
        <DataTemplate>
          <ImageCell Text="{Binding Name}"
                     Detail="{Binding Title}"
                     ImageSource="{Binding Avatar}"/>
        </DataTemplate>
      </ListView.ItemTemplate>
    </ListView>
  </StackLayout>
</ContentPage>