From 078130d768b38d4836c4af05bcfa3d1b0ded9830 Mon Sep 17 00:00:00 2001 From: Matheo HERSAN Date: Mon, 22 May 2023 11:01:57 +0200 Subject: [PATCH] Enhancement DataBinding --- MangaMap/Views/FicheAnime.xaml.cs | 6 +- MangaMap/Views/ficheAnime.xaml | 122 +++++++++++++++--------------- 2 files changed, 65 insertions(+), 63 deletions(-) diff --git a/MangaMap/Views/FicheAnime.xaml.cs b/MangaMap/Views/FicheAnime.xaml.cs index 13cd9be..11c6adc 100644 --- a/MangaMap/Views/FicheAnime.xaml.cs +++ b/MangaMap/Views/FicheAnime.xaml.cs @@ -3,13 +3,15 @@ using Model; public partial class ficheAnime : ContentPage { - public Manager DataManager { get; set; } + public Oeuvre AnimeModel { get; set; } public ficheAnime() { InitializeComponent(); - DataManager = new Manager(); + // Exemple de création d'une instance de la classe Oeuvre + List genres = new List() { "Action", "Aventure" }; + AnimeModel = new Oeuvre("Nom de l'oeuvre", genres, "Type de l'oeuvre", "Description de l'oeuvre", 5, 12, "Chemin/vers/l'affiche.png"); this.BindingContext = this; } diff --git a/MangaMap/Views/ficheAnime.xaml b/MangaMap/Views/ficheAnime.xaml index 7e8bac3..7b60d09 100644 --- a/MangaMap/Views/ficheAnime.xaml +++ b/MangaMap/Views/ficheAnime.xaml @@ -1,63 +1,63 @@ - - - - - - - - - - - - - - - - - - - - - - - -