<?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"
             x:Class="App.Pages.ChampionsListPage"
             Title="Champions">
    <ContentPage.ToolbarItems>
        <ToolbarItem Text="Ajouter"/>
    </ContentPage.ToolbarItems>

    <VerticalStackLayout>
        <ListView ItemsSource="{Binding Champions}">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <ImageCell ImageSource="{Binding Image}"
                               Text="{Binding Name}"
                               Detail="{Binding Description}">
                    </ImageCell>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
    </VerticalStackLayout>
</ContentPage>
