From ad0e5be7255ce2fdb25c2675c0f660e99b013d79 Mon Sep 17 00:00:00 2001 From: rportet Date: Fri, 7 Jun 2024 13:33:21 +0200 Subject: [PATCH] test for the app.xaml --- Qwirkle/QwirkleViews/App.xaml.cs | 1 + Qwirkle/QwirkleViews/MainPage.xaml.cs | 1 + Qwirkle/QwirkleViews/Views/GoBack.xaml.cs | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Qwirkle/QwirkleViews/App.xaml.cs b/Qwirkle/QwirkleViews/App.xaml.cs index bb478eb..a769596 100644 --- a/Qwirkle/QwirkleViews/App.xaml.cs +++ b/Qwirkle/QwirkleViews/App.xaml.cs @@ -19,6 +19,7 @@ namespace Qwirkle InitializeComponent(); + //MainPage = new NavigationPage(new MainPage()); MainPage = new AppShell(); Routing.RegisterRoute(nameof(SetPlayers), typeof(SetPlayers)); diff --git a/Qwirkle/QwirkleViews/MainPage.xaml.cs b/Qwirkle/QwirkleViews/MainPage.xaml.cs index e4bfe0f..3c55466 100644 --- a/Qwirkle/QwirkleViews/MainPage.xaml.cs +++ b/Qwirkle/QwirkleViews/MainPage.xaml.cs @@ -20,6 +20,7 @@ namespace Qwirkle { DisplayAlert("Game notification", "Enter minimun 2 player and max 4 player !", "Ok ! Lets's go !"); + Navigation.PushAsync(new SetPlayers()); } diff --git a/Qwirkle/QwirkleViews/Views/GoBack.xaml.cs b/Qwirkle/QwirkleViews/Views/GoBack.xaml.cs index cc77872..b157937 100644 --- a/Qwirkle/QwirkleViews/Views/GoBack.xaml.cs +++ b/Qwirkle/QwirkleViews/Views/GoBack.xaml.cs @@ -9,8 +9,8 @@ public partial class GoBack : ContentView InitializeComponent(); } - private async void Button_OnClicked(object? sender, EventArgs e) + private void Button_OnClicked(object? sender, EventArgs e) { - await Navigation.PopToRootAsync(); + Navigation.PopAsync(); } } \ No newline at end of file