|
|
|
@ -3,7 +3,8 @@
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
|
x:Class="Qwirkle.Pages.Leaderboard"
|
|
|
|
|
xmlns:controls="clr-namespace:Qwirkle.Views"
|
|
|
|
|
Title="Leaderboard">
|
|
|
|
|
Title="Leaderboard"
|
|
|
|
|
x:Name="root">
|
|
|
|
|
|
|
|
|
|
<ScrollView>
|
|
|
|
|
<VerticalStackLayout Spacing="25" Padding="5, 5, 5, 10">
|
|
|
|
@ -24,60 +25,47 @@
|
|
|
|
|
|
|
|
|
|
<StackLayout>
|
|
|
|
|
<Grid ColumnDefinitions="4*, auto, 2*, auto, 2*, auto, 2*"
|
|
|
|
|
RowDefinitions="50">
|
|
|
|
|
|
|
|
|
|
RowDefinitions="50">
|
|
|
|
|
<Label
|
|
|
|
|
Text="Player tag"
|
|
|
|
|
Style="{StaticResource ContentTab}"
|
|
|
|
|
/>
|
|
|
|
|
Text="Player tag"
|
|
|
|
|
Style="{StaticResource ContentTab}"/>
|
|
|
|
|
<Rectangle
|
|
|
|
|
Style="{StaticResource RectangleTab}"
|
|
|
|
|
Grid.Column="1"/>
|
|
|
|
|
|
|
|
|
|
Style="{StaticResource RectangleTab}"
|
|
|
|
|
Grid.Column="1"/>
|
|
|
|
|
<Label
|
|
|
|
|
Grid.Column="2"
|
|
|
|
|
Text="Date"
|
|
|
|
|
Style="{StaticResource ContentTab}"/>
|
|
|
|
|
|
|
|
|
|
Grid.Column="2"
|
|
|
|
|
Text="Date"
|
|
|
|
|
Style="{StaticResource ContentTab}"/>
|
|
|
|
|
<Rectangle
|
|
|
|
|
Style="{StaticResource RectangleTab}"
|
|
|
|
|
Grid.Column="3"/>
|
|
|
|
|
|
|
|
|
|
Style="{StaticResource RectangleTab}"
|
|
|
|
|
Grid.Column="3"/>
|
|
|
|
|
<Label
|
|
|
|
|
Grid.Column="4"
|
|
|
|
|
Text="Points"
|
|
|
|
|
Style="{StaticResource ContentTab}"/>
|
|
|
|
|
|
|
|
|
|
Grid.Column="4"
|
|
|
|
|
Text="Points"
|
|
|
|
|
Style="{StaticResource ContentTab}"/>
|
|
|
|
|
<Rectangle
|
|
|
|
|
Style="{StaticResource RectangleTab}"
|
|
|
|
|
Grid.Column="5"/>
|
|
|
|
|
|
|
|
|
|
Style="{StaticResource RectangleTab}"
|
|
|
|
|
Grid.Column="5"/>
|
|
|
|
|
<Label
|
|
|
|
|
Grid.Column="6"
|
|
|
|
|
Style="{StaticResource ContentTab}"
|
|
|
|
|
Text="Victories"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
Grid.Column="6"
|
|
|
|
|
Style="{StaticResource ContentTab}"
|
|
|
|
|
Text="Victories"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
<CollectionView ItemsSource="{Binding Lb}">
|
|
|
|
|
<CollectionView.ItemsLayout>
|
|
|
|
|
<GridItemsLayout Orientation="Vertical"/>
|
|
|
|
|
</CollectionView.ItemsLayout>
|
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<controls:LeaderboardLine Name="{Binding Score.PlayerName}"></controls:LeaderboardLine>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
|
|
</CollectionView>
|
|
|
|
|
<CollectionView.ItemsLayout>
|
|
|
|
|
<GridItemsLayout Orientation="Vertical"/>
|
|
|
|
|
</CollectionView.ItemsLayout>
|
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<controls:LeaderboardLine PlayerName="{Binding PlayerName}" Date="{Binding Date}" Points="{Binding Points}" Victories="{Binding Victories}" />
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
|
|
</CollectionView>
|
|
|
|
|
|
|
|
|
|
</StackLayout>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
</VerticalStackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
|
|
</ContentPage>
|