You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
609 B
29 lines
609 B
using System.Collections.ObjectModel;
|
|
|
|
namespace BookApp;
|
|
|
|
public partial class Player : ContentPage
|
|
{
|
|
public List<string> MyItems { get; set; }
|
|
public Player()
|
|
{
|
|
InitializeComponent();
|
|
MyItems = new List<string>();
|
|
|
|
// Ajouter des éléments à la liste
|
|
MyItems.Add("Élément 1");
|
|
MyItems.Add("Élément 2");
|
|
MyItems.Add("Élément 3");
|
|
MyItems.Add("Élément 4");
|
|
|
|
myListView.ItemsSource = MyItems;
|
|
}
|
|
private async void OnBackButtonClicked(object sender, EventArgs e)
|
|
{
|
|
await Navigation.PopAsync();
|
|
}
|
|
|
|
|
|
|
|
}
|