Mise en place du picker en cours

master
cldupland 6 years ago
parent 26e928e7b9
commit 97ff38934b

@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="4.3.0.947036" />
<PackageReference Include="Xamarin.Forms" Version="4.3.0.991211" />
<PackageReference Include="Xamarin.Essentials" Version="1.3.1" />
</ItemGroup>
<ItemGroup>

@ -42,7 +42,9 @@
<StackLayout
Grid.Row="2"
Grid.Column="0">
<Picker
x:Name="PlayerSelecter"
ItemsSource="{Binding listNbPlayer}"/>
</StackLayout>
<StackLayout

@ -18,6 +18,7 @@ namespace TheGameExtreme.view
OnPropertyChanged("InstructionText");
}
}
public List<int> listNbPlayer = new List<int>();
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)

Loading…
Cancel
Save