<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:controls="clr-namespace:Views"
             x:Class="Views.DetailAnimal"
             Title="{Binding Nom}">
    <ScrollView>
        <VerticalStackLayout>
            <HorizontalStackLayout VerticalOptions="Start"
                                   HorizontalOptions="End">
                <!-- To delete the pet -->
                <Button Text="Supprimer" 
                        Clicked="Button_OnClick"/>
            </HorizontalStackLayout>

            <controls:View_DetailAnimal/>

            <VerticalStackLayout x:Name="PetAdvice"
                                 Margin="0,10,0,10">
                <Label Text="Conseils"
                       FontSize="Large"/>
                <Border>
                    <Label Text="{Binding Conseil}"
                           FontAttributes="None"
                           FontFamily="Raleway"/>
                </Border>
            </VerticalStackLayout>
        </VerticalStackLayout>
    </ScrollView>
</ContentPage>