<?xml version="1.0" encoding="UTF-8" ?>
<Shell
    x:Class="Views.AppShell"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:local="clr-namespace:Views"
    Shell.FlyoutBehavior="Disabled">

    <!-- Page navigation bar -->
    <TabBar>
        <!-- Go to home page -->
        <ShellContent Title="Accueil"
                      ContentTemplate="{DataTemplate local:MainPage}"
                      Route="MainPage" />

        <!-- To go to the species list -->
        <ShellContent Title="Les espèces"
                      ContentTemplate="{DataTemplate local:Especes}"
                      Route="Especes" />

        <!-- To go to the user's pet list -->
        <ShellContent Title="Vos animaux"
                      ContentTemplate="{DataTemplate local:Animaux}"
                      Route="Animaux"/>
    </TabBar>

    <!-- To go to the add a pet page without the page being in the navigation bar -->
    <ShellContent Title="Ajout d'un animal" 
                  ContentTemplate="{DataTemplate local:New_DetailAnimal}"
                  Route="New_DetailAnimal"/>
</Shell>
