<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"             
             x:Class="LivreLand.View.ContentViews.DetailsLivreButtonView"
             x:Name="this">
    
    <Grid BindingContext="{x:Reference this}"
          Margin="10">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="10"/>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Image Source="{Binding ButtonIcon}"
               MaximumHeightRequest="20"
               MaximumWidthRequest="20"
               Grid.Column="0">
            <Image.Behaviors>
                <toolkit:IconTintColorBehavior TintColor="Red"/>
            </Image.Behaviors>
        </Image>
        <Label Text="{Binding ButtonTitle}"
               Style="{StaticResource DetailsButtonBody}"
               TextColor="Red"
               VerticalOptions="Center"
               Grid.Column="2"/>
        <Grid.GestureRecognizers>
            <TapGestureRecognizer Command="{Binding ButtonCommand}" CommandParameter="{Binding ButtonCommandParameter}"/>
        </Grid.GestureRecognizers>
    </Grid>
    
</ContentView>
