From ad934b1ec9784bc9779ff7e424d348835ad3efe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20LAVERGNE?= Date: Mon, 3 Jun 2024 11:16:05 +0200 Subject: [PATCH] Ajout des routes pour la navigation --- source/Trek-12/Trek-12/AppShell.xaml.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/source/Trek-12/Trek-12/AppShell.xaml.cs b/source/Trek-12/Trek-12/AppShell.xaml.cs index ad8d368..529cbe9 100644 --- a/source/Trek-12/Trek-12/AppShell.xaml.cs +++ b/source/Trek-12/Trek-12/AppShell.xaml.cs @@ -1,10 +1,21 @@ -namespace Trek_12 +using Trek_12.Views; + +namespace Trek_12 { + /// + /// Class for the route of the views and the navigation of the app. + /// public partial class AppShell : Shell { public AppShell() { InitializeComponent(); + + Routing.RegisterRoute(nameof(PageMenuPrincipal), typeof(PageMenuPrincipal)); + Routing.RegisterRoute(nameof(PageProfils), typeof(PageProfils)); + Routing.RegisterRoute(nameof(PageSelectMap), typeof(PageSelectMap)); + Routing.RegisterRoute(nameof(PageRegles), typeof(PageRegles)); + Routing.RegisterRoute(nameof(PageLeaderBoard), typeof(PageLeaderBoard)); } } }