<?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="Add" Clicked="AddClicked"/>
    </ContentPage.ToolbarItems>

    <ListView ItemsSource="{Binding ChampionVMs}" ItemSelected="ListView_ItemSelected">
        <ListView.ItemTemplate>
            <DataTemplate>
                <TextCell 
                        Text="{Binding Name}"
                        Detail="{Binding Bio}">
                </TextCell>
            </DataTemplate>
        </ListView.ItemTemplate>
    </ListView>
</ContentPage>
