From d73d36f4e8bedb00e863c5b9b3e89baedf768213 Mon Sep 17 00:00:00 2001 From: "Leana.besson" Date: Thu, 1 Jun 2023 23:07:55 +0200 Subject: [PATCH] Modification route pour DetailAnimal --- Sources/Views/Animaux.xaml.cs | 2 +- Sources/Views/AppShell.xaml | 4 +- Sources/Views/DetailAnimal.xaml | 4 - Sources/Views/New_DetailAnimal.xaml | 380 +++++++++++++++++++++++++ Sources/Views/New_DetailAnimal.xaml.cs | 59 ++++ 5 files changed, 442 insertions(+), 7 deletions(-) create mode 100644 Sources/Views/New_DetailAnimal.xaml create mode 100644 Sources/Views/New_DetailAnimal.xaml.cs diff --git a/Sources/Views/Animaux.xaml.cs b/Sources/Views/Animaux.xaml.cs index 5a68823..6ec5c69 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("//New_DetailAnimal"); } } diff --git a/Sources/Views/AppShell.xaml b/Sources/Views/AppShell.xaml index 5001ed9..6d16e09 100644 --- a/Sources/Views/AppShell.xaml +++ b/Sources/Views/AppShell.xaml @@ -22,6 +22,6 @@ Route="Animaux"/> + ContentTemplate="{DataTemplate local:New_DetailAnimal}" + Route="New_DetailAnimal"/> diff --git a/Sources/Views/DetailAnimal.xaml b/Sources/Views/DetailAnimal.xaml index 63a1791..2043c02 100644 --- a/Sources/Views/DetailAnimal.xaml +++ b/Sources/Views/DetailAnimal.xaml @@ -8,10 +8,6 @@ -