From 97ff38934b3fe59a0d92a72cc78f482aca1c82e5 Mon Sep 17 00:00:00 2001 From: cldupland Date: Thu, 14 Nov 2019 11:59:28 +0100 Subject: [PATCH 1/4] Mise en place du picker en cours --- TheGameExtreme/TheGameExtreme.csproj | 2 +- TheGameExtreme/view/GamePreparationPage.xaml | 4 +++- TheGameExtreme/view/GamePreparationPage.xaml.cs | 6 ++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/TheGameExtreme/TheGameExtreme.csproj b/TheGameExtreme/TheGameExtreme.csproj index 93af40a..7bc14c0 100644 --- a/TheGameExtreme/TheGameExtreme.csproj +++ b/TheGameExtreme/TheGameExtreme.csproj @@ -7,7 +7,7 @@ - + diff --git a/TheGameExtreme/view/GamePreparationPage.xaml b/TheGameExtreme/view/GamePreparationPage.xaml index 3a7aa28..81c8fc7 100644 --- a/TheGameExtreme/view/GamePreparationPage.xaml +++ b/TheGameExtreme/view/GamePreparationPage.xaml @@ -42,7 +42,9 @@ - + listNbPlayer = new List(); public GamePreparationPage() @@ -26,6 +27,11 @@ namespace TheGameExtreme.view NavigationPage.SetHasNavigationBar(this, false); Instruction.SetBinding(Label.TextProperty, new Binding("InstructionText", source: this)); InstructionText = AppRessource.StrPlayerSelection; + listNbPlayer.Add(1); + listNbPlayer.Add(2); + listNbPlayer.Add(3); + listNbPlayer.Add(4); + listNbPlayer.Add(5); } private async void Back(object sender, EventArgs e) From 070c77d1db160d4a142a1ec0e568d47b82805aab Mon Sep 17 00:00:00 2001 From: cldupland Date: Thu, 14 Nov 2019 16:08:17 +0100 Subject: [PATCH 2/4] =?UTF-8?q?Ajout=20du=20menu=20d=C3=A9roulant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TheGameExtreme/view/GamePreparationPage.xaml | 20 +++++++++++----- .../view/GamePreparationPage.xaml.cs | 24 ++++++++++++++----- 2 files changed, 32 insertions(+), 12 deletions(-) diff --git a/TheGameExtreme/view/GamePreparationPage.xaml b/TheGameExtreme/view/GamePreparationPage.xaml index 81c8fc7..29c0ef1 100644 --- a/TheGameExtreme/view/GamePreparationPage.xaml +++ b/TheGameExtreme/view/GamePreparationPage.xaml @@ -35,28 +35,36 @@ - + Grid.Column="0" + Margin="50,0,50,0"> + BackgroundColor="{DynamicResource SkyBlueColor}" + SelectedIndexChanged="ChangedPseudo" + Margin="50,0,50,0"/> + Grid.Column="1" + Margin="50,0,50,0" + x:Name="NameList"> + Grid.ColumnSpan="2">