|
|
|
@ -1,30 +1,35 @@
|
|
|
|
|
namespace BookApp
|
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
|
|
|
|
|
namespace BookApp
|
|
|
|
|
{
|
|
|
|
|
public partial class MainPage : ContentPage
|
|
|
|
|
{
|
|
|
|
|
//int count = 0;
|
|
|
|
|
public class ObjetTemp
|
|
|
|
|
{
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public string Icone { get; set; }
|
|
|
|
|
public ObjetTemp(string name, string icone) { Name = name; Icone = icone; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ObservableCollection<ObjetTemp> MyCollections { get; set; }
|
|
|
|
|
|
|
|
|
|
public MainPage()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
MyCollections = new ObservableCollection<ObjetTemp>()
|
|
|
|
|
{
|
|
|
|
|
new ObjetTemp("Item1", "./Reources/Images/books_vertical_fill.svg"),
|
|
|
|
|
new ObjetTemp("Item1", "./Reources/Images/books_vertical_fill.svg"),
|
|
|
|
|
new ObjetTemp("Item1", "./Reources/Images/books_vertical_fill.svg"),
|
|
|
|
|
new ObjetTemp("Item1", "./Reources/Images/books_vertical_fill.svg"),
|
|
|
|
|
};
|
|
|
|
|
BindingContext = this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async void OnButtonClicked(object sender, EventArgs args)
|
|
|
|
|
{
|
|
|
|
|
await Shell.Current.GoToAsync(nameof(Tous));
|
|
|
|
|
}
|
|
|
|
|
/*
|
|
|
|
|
private void OnCounterClicked(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
count++;
|
|
|
|
|
|
|
|
|
|
if (count == 1)
|
|
|
|
|
CounterBtn.Text = $"Clicked {count} time";
|
|
|
|
|
else
|
|
|
|
|
CounterBtn.Text = $"Clicked {count} times";
|
|
|
|
|
|
|
|
|
|
SemanticScreenReader.Announce(CounterBtn.Text);
|
|
|
|
|
}*/
|
|
|
|
|
}
|
|
|
|
|
}
|