Fonction OnProfil_Tapped

pull/18/head
Rémi LAVERGNE 2 years ago
parent d734113cc6
commit 63f9c0068c

Binary file not shown.

@ -39,13 +39,17 @@
/> />
<Label <Label
Text="Pseudo" Text="Pseudonyme"
FontFamily="AladinRegular" FontFamily="AladinRegular"
FontSize="18" FontSize="18"
Grid.Row="1" Grid.Row="1"
HorizontalOptions="Start" HorizontalOptions="Start"
VerticalOptions="Center" VerticalOptions="Center">
/> <Label.GestureRecognizers>
<TapGestureRecognizer Tapped="OnProfil_Tapped"/>
</Label.GestureRecognizers>
</Label>
</HorizontalStackLayout> </HorizontalStackLayout>
<StackLayout HorizontalOptions="Center" VerticalOptions="Center" Grid.Row="2"> <StackLayout HorizontalOptions="Center" VerticalOptions="Center" Grid.Row="2">

@ -6,7 +6,8 @@ namespace GameAtlas.Views;
public partial class PageAcceuil : ContentPage public partial class PageAcceuil : ContentPage
{ {
public Manager Manager => (App.Current as App).MyManager; public Manager AccueilManager => (App.Current as App).MyManager;
public PageAcceuil() public PageAcceuil()
{ {
@ -14,6 +15,11 @@ public partial class PageAcceuil : ContentPage
} }
private async void OnProfil_Tapped(object sender, EventArgs e)
{
await Navigation.PushAsync(new PageProfil());
}
private async void OnButtonClicked(object sender, EventArgs e) private async void OnButtonClicked(object sender, EventArgs e)
{ {
await Shell.Current.Navigation.PushAsync(new PageJeu()); await Shell.Current.Navigation.PushAsync(new PageJeu());

Loading…
Cancel
Save