Beginning of the DataBinding
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
45031161df
commit
a18c5dcb88
@ -1,9 +1,18 @@
|
|||||||
namespace MangaMap.Views;
|
namespace MangaMap.Views;
|
||||||
|
using Model;
|
||||||
|
|
||||||
public partial class ficheAnime : ContentPage
|
public partial class ficheAnime : ContentPage
|
||||||
{
|
{
|
||||||
|
public Oeuvre AnimeModel { get; set; }
|
||||||
|
|
||||||
public ficheAnime()
|
public ficheAnime()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
|
// Exemple de création d'une instance de la classe Oeuvre
|
||||||
|
List<string> genres = new List<string>() { "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;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in new issue