From a7c714d8da197c10d2a2bdf306768703c430d8f5 Mon Sep 17 00:00:00 2001 From: relavergne Date: Mon, 8 May 2023 14:05:40 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20la=20fonction=20'Back=5FTapped',?= =?UTF-8?q?=20r=C3=A9agissant=20au=20clic=20sur=20la=20fl=C3=A8che,=20pour?= =?UTF-8?q?=20retourner=20=C3=A0=20la=20page=20pr=C3=A9c=C3=A9dente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GameAtlas/GameAtlas/Views/PageJeu.xaml.cs | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/GameAtlas/GameAtlas/Views/PageJeu.xaml.cs b/GameAtlas/GameAtlas/Views/PageJeu.xaml.cs index 037fba4..d1014c0 100644 --- a/GameAtlas/GameAtlas/Views/PageJeu.xaml.cs +++ b/GameAtlas/GameAtlas/Views/PageJeu.xaml.cs @@ -1,17 +1,20 @@ using GameAtlas.Models; using System.Diagnostics; -namespace GameAtlas.Views; - -public partial class PageJeu : ContentPage -{ - +namespace GameAtlas.Views; + +public partial class PageJeu : ContentPage +{ + public Manager JeuManager => (App.Current as App).MyManager; - public PageJeu() - { + public PageJeu() + { InitializeComponent(); - } - - + } + + async void Back_Tapped(System.Object sender, Microsoft.Maui.Controls.TappedEventArgs e) + { + await Navigation.PopAsync(); + } } \ No newline at end of file