<?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="inutralia.Views.Question.HistoryView"
             xmlns:artina="clr-namespace:UXDivers.Artina.Shared;assembly=UXDivers.Artina.Shared" 
             x:Name="historyView"
             Title="Histórico"
             Icon="History1"
             BackgroundColor="{DynamicResource BasePageColor}">

    <ContentPage.Content>
        <ListView x:Name="ListView"
                  ItemsSource="{Binding HistoryList}"
                  ItemTapped="ItemTapped"
                  IsPullToRefreshEnabled="True"
                  IsRefreshing="{Binding Busy, Mode=TwoWay}"
                  BackgroundColor="Transparent"
                  Footer=""
                  CachingStrategy="RecycleElement"
                  HasUnevenRows="False"
                  Margin="10,10">

            <ListView.ItemTemplate>
                <DataTemplate>
                    <ViewCell>
                        <Grid Margin="0,10,0,10" VerticalOptions="CenterAndExpand">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>

                            <StackLayout>
                                <Label Text="{Binding Text}" FontSize="Medium"/>
                            </StackLayout>
                        </Grid>
                    </ViewCell>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
    </ContentPage.Content>
</ContentPage>