<?xml version="1.0" encoding="utf-8"?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Qwirkle.Views.LeaderboardLine"
             x:Name="root">

    <Grid ColumnDefinitions="4*, auto, 2*, auto, 2*, auto, 2*"
          RowDefinitions="50">
        
        <Label 
            Text="{Binding PlayerName}"
            Style="{StaticResource ContentTab}"/>
        
        <Rectangle
            Style="{StaticResource RectangleTab}"
            Grid.Column="1"/>
        
        <Label
            Grid.Column="2"
            Text="{Binding Date, StringFormat='{0:MM/dd/yyyy}'}"
            Style="{StaticResource ContentTab}"/>
        
        <Rectangle
            Style="{StaticResource RectangleTab}"
            Grid.Column="3"/>
        
        <Label
            Grid.Column="4"
            Text="{Binding Points}"
            Style="{StaticResource ContentTab}"/>
        
        <Rectangle
            Style="{StaticResource RectangleTab}"
            Grid.Column="5"/>
        
        <Label
            Grid.Column="6"
            Style="{StaticResource ContentTab}"
            Text="{Binding Victories}"/>
        
    </Grid>
</ContentView>
