<?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:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
             xmlns:shape="Microsoft.Maui.Controls.Shapes"
             x:Class="Vues.SearchMob">
             <!--BackgroundImageSource="backcollection.jpg"-->
    <Grid ColumnDefinitions="Auto, *">
        <Grid RowDefinitions="Auto, *" RowSpacing="25" WidthRequest="300">
            <HorizontalStackLayout Grid.Row="0">
                <ImageButton Source="exit.png" WidthRequest="20"/>
                <SearchBar Placeholder="Rechercher un monstre"
                            PlaceholderColor="DimGray"
                            CancelButtonColor="DimGray"/>
            </HorizontalStackLayout>
            <ListView ItemsSource="{Binding ListMonsters}" Grid.Row="1">
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <ViewCell>
                            <VerticalStackLayout>
                                <ImageButton Source="{Binding ImageLink}"/>
                            </VerticalStackLayout>
                        </ViewCell>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>
        </Grid>
    </Grid>
</ContentPage>