<?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:model="clr-namespace:LOLAPP.Modele"
             x:Class="LOLAPP.MainPage">

    <ContentPage.BindingContext>
        <model:Manager/>
    </ContentPage.BindingContext>

    <VerticalStackLayout
            Spacing="25"
            Padding="30,0"
            VerticalOptions="Center">

        <ListView x:Name="champ">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <ViewCell>
                        <Border Stroke="DarkSalmon" StrokeThickness="4"
                                Margin="0, 4" Padding="8,4"
                                BackgroundColor="GhostWhite">
                            <Border.StrokeShape>
                                <RoundRectangle CornerRadius="30, 30, 30, 0"/>
                            </Border.StrokeShape>
                            <Grid ColumnDefinitions="Auto, *" RowDefinitions="2*, *, *"
                                  ColumnSpacing="15">
                                <Frame Grid.RowSpan="3" 
                                       WidthRequest="60" HeightRequest="60"
                                       Padding="0" CornerRadius="30" Margin="0"
                                       IsClippedToBounds="True"
                                       BorderColor="DarkSalmon" HasShadow="True" >
                                    <Frame.Shadow>
                                        <Shadow Brush="DarkSalmon" Offset="3, 2"
                                                Radius="2" Opacity="0.8"/>
                                    </Frame.Shadow>
                                </Frame>
                                <Label Text="{Binding Name}" Grid.Column="1" FontSize="Medium"/>
                            </Grid>
                        </Border>
                    </ViewCell>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>

        <Label Text="{Binding _champions[1].Name}"/>

    </VerticalStackLayout>

</ContentPage>