<?xml version="1.0" encoding="utf-8" ?>
<toolkit:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Qwirkle.PopUpEndGame"
             xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
             x:Name="root"
             CanBeDismissedByTappingOutsideOfPopup="False"
             xmlns:controls="clr-namespace:Qwirkle.Views"
             >

    <VerticalStackLayout HeightRequest="400" WidthRequest="500">

        <Label
                Text="THE END :("
                Style="{StaticResource SuperTitle}"
                FontSize="Medium"
                />

        <Label Text="THE WINNER IS :"></Label>

        <Label Text="{Binding ScoreboardList[0].Key, Source={x:Reference root}}" Style="{StaticResource SuperTitle}" TextColor="HotPink" FontSize="Medium"></Label>

        <controls:Scoreboard></controls:Scoreboard>

        <Button Text="Skip" Style="{StaticResource GameButton}" Clicked="OnButtonNextClick"></Button>

    </VerticalStackLayout>
</toolkit:Popup>