<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="LOLAPP.View.Strat"
             Title="Strat">
    <HorizontalStackLayout BackgroundColor="DarkGrey">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <StackLayout WidthRequest="350" BackgroundColor="Black" >
                <ListView x:Name="stratListView" WidthRequest="0"
                          Grid.Column="0"
                          ItemsSource="{Binding StratList}"/>
                <Button Text="Add" Clicked="AddButton_Clicked" WidthRequest="350" BackgroundColor="Black"/>
            </StackLayout>
        </Grid>
        <Label x:Name="nameLabel"
                   FontSize="Large"
                   Text="{Binding SelectedStrategie.Name}" />
            <ListView x:Name="championsListView"
                      ItemsSource="{Binding SelectedStrategie.Champions}"
                      HasUnevenRows="True"
                      SeparatorVisibility="None">
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <ViewCell>
                            <StackLayout Orientation="Vertical" Padding="10">
                                <Image Source="{Binding Image}" WidthRequest="50" HeightRequest="50" />
                                <Label Text="{Binding Name}" VerticalOptions="Center" />
                            </StackLayout>
                        </ViewCell>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>
        <Label x:Name="descriptionLabel"
           Text="{Binding SelectedStrategie.Description}" />
    </HorizontalStackLayout>
</ContentPage>