Ne fonctionne pas, je pars sur pageProfil puisqu'il n'y a pas de lien entre le player et le bestscore
continuous-integration/drone/push Build is passing Details

pull/94/head
Remi NEVEU 11 months ago
parent 3a2eee23b6
commit 4733ed0a7e

@ -6,4 +6,31 @@ public partial class ContentLeaderBoard : ContentView
{
InitializeComponent();
}
public static readonly BindableProperty Pseudo =
BindableProperty.Create("Pseudo", typeof(string), typeof(ContentLeaderBoard), "");
public string Pseudo
{
get => (string)GetValue(Pseudo);
set => SetValue(Pseudo, value);
}
public static readonly BindableProperty Pseudo =
BindableProperty.Create("Title", typeof(string), typeof(ContentLeaderBoard), "No Title");
public string Title
{
get => (string)GetValue(TitleProperty);
set => SetValue(TitleProperty, value);
}
public static readonly BindableProperty SubTitleProperty =
BindableProperty.Create("SubTitle", typeof(string), typeof(ContentLeaderBoard), "Lorem Ipsum Dolor");
public string SubTitle
{
get => (string)GetValue(SubTitleProperty);
set => SetValue(SubTitleProperty, value);
}
}

@ -2,6 +2,7 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:views="clr-namespace:Trek_12.Views.Components"
xmlns:player="clr-namespace:Models.Game.Player"
x:Class="Trek_12.Views.PageLeaderBoard"
Title="PageLeaderBoard">
@ -32,9 +33,12 @@
<CollectionView ItemsSource="{Binding ListPlayer}">
<CollectionView.ItemTemplate>
<DataTemplate>
<!--<DataTemplate>
<views:ContentLeaderBoard/>
<Label Text="{Binding Pseudo}"/>
</DataTemplate>
</DataTemplate>-->
<views:ContentLeaderBoard
/>
</CollectionView.ItemTemplate>
</CollectionView>

Loading…
Cancel
Save