From 810aa0579edeabff113c95cfbc88fe6f50adc75b Mon Sep 17 00:00:00 2001 From: "Leana.besson" Date: Thu, 1 Jun 2023 20:39:23 +0200 Subject: [PATCH] Ajout de la navigation par route pour Detail_Animal --- Sources/Views/Animaux.xaml.cs | 2 +- Sources/Views/DetailAnimal.xaml | 4 ++-- Sources/Views/DetailAnimal.xaml.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/Views/Animaux.xaml.cs b/Sources/Views/Animaux.xaml.cs index fc85112..5a68823 100644 --- a/Sources/Views/Animaux.xaml.cs +++ b/Sources/Views/Animaux.xaml.cs @@ -21,7 +21,7 @@ public partial class Animaux : ContentPage public async void Button_OnClick(object sender, EventArgs e) { (App.Current as App).AnimalSelectionner = (App.Current as App).Theque.AjouterAnimal(); - await Shell.Current.GoToAsync("//DetailAnimal"); + await Shell.Current.GoToAsync("///DetailAnimal"); } } diff --git a/Sources/Views/DetailAnimal.xaml b/Sources/Views/DetailAnimal.xaml index 8915030..63a1791 100644 --- a/Sources/Views/DetailAnimal.xaml +++ b/Sources/Views/DetailAnimal.xaml @@ -5,7 +5,7 @@ Title="{Binding Nom}" x:Name="page_creation"> -