From 4733ed0a7edfcbf5b2c113cbf438dd5568212735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi?= Date: Fri, 31 May 2024 18:14:49 +0200 Subject: [PATCH] Ne fonctionne pas, je pars sur pageProfil puisqu'il n'y a pas de lien entre le player et le bestscore --- .../Components/ContentLeaderBoard.xaml.cs | 27 +++++++++++++++++++ .../Resources/Views/PageLeaderBoard.xaml | 8 ++++-- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/source/Trek-12/Trek-12/Resources/Views/Components/ContentLeaderBoard.xaml.cs b/source/Trek-12/Trek-12/Resources/Views/Components/ContentLeaderBoard.xaml.cs index da9bf40..0328d08 100644 --- a/source/Trek-12/Trek-12/Resources/Views/Components/ContentLeaderBoard.xaml.cs +++ b/source/Trek-12/Trek-12/Resources/Views/Components/ContentLeaderBoard.xaml.cs @@ -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); + } } \ No newline at end of file diff --git a/source/Trek-12/Trek-12/Resources/Views/PageLeaderBoard.xaml b/source/Trek-12/Trek-12/Resources/Views/PageLeaderBoard.xaml index 4420404..9831512 100644 --- a/source/Trek-12/Trek-12/Resources/Views/PageLeaderBoard.xaml +++ b/source/Trek-12/Trek-12/Resources/Views/PageLeaderBoard.xaml @@ -2,6 +2,7 @@ @@ -32,9 +33,12 @@ - + +