<?xml version="1.0" encoding="UTF-8"?>
<Grid xmlns="http://xamarin.com/schemas/2014/forms" 
      xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
      x:Class="PhilExample.UI.Views.CrawlSessionMiniView"
      xmlns:vms="clr-namespace:PhilExample.VMs"
      RowSpacing="0" ColumnSpacing="0" Margin="4,0,4,0"
      x:DataType="vms:CrawlSessionMiniVM">

    <Grid.RowDefinitions>
        <RowDefinition Height="0.32*" />
        <RowDefinition Height="0.24*" />
        <RowDefinition Height="0.44*" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="140" />
    </Grid.ColumnDefinitions>

    <BoxView Grid.RowSpan="3"
             BackgroundColor="{StaticResource Color_Primary}"
             CornerRadius="15" />

    <Label Grid.Row="0" Text="{Binding Title}" FontSize="14" TextColor="{StaticResource Color_TextContrast}" FontFamily="NunitoBold"
           Margin="10,10,4,0" LineBreakMode="TailTruncation" />
    <Label Grid.Row="1" Text="{Binding SubTitle}" FontSize="10" TextColor="{StaticResource Color_TextContrast}"  FontFamily="NunitoMedium"
           Margin="10,0,4,0"/>
    <Label Grid.Row="2" Text="Details" FontSize="12" TextColor="{StaticResource Color_TextContrast}" TextDecorations="Underline" FontFamily="NunitoBold"
           VerticalOptions="End"
           Margin="10,0,4,10">
        <Label.GestureRecognizers>
            <TapGestureRecognizer Command="{Binding ActionCommand}" CommandParameter="{Binding ActionCommandParameter}" />
        </Label.GestureRecognizers>
    </Label>

</Grid>