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.
GameAtlas/Sources/GameAtlas/GameAtlas/Views/PageAccueil.xaml.cs

34 lines
804 B

using Models;
using System.Collections.ObjectModel;
using System.Diagnostics;
namespace GameAtlas.Views;
/// <summary>
/// Code-Behind pour la page d'accueil.
/// </summary>
public partial class PageAccueil : ContentPage
{
public Manager AccueilManager => (App.Current as App).MyManager;
public PageAccueil()
{
InitializeComponent();
BindingContext = AccueilManager;
}
private async void OnProfil_Tapped(object sender, EventArgs e)
{
await Navigation.PushAsync(new PageProfil());
}
private async void OnButtonClicked(object sender, EventArgs e)
{
var selectedjeu = (sender as ImageButton)?.BindingContext as Jeu;
if (selectedjeu != null)
{
await Navigation.PushAsync(new PageJeu(selectedjeu));
}
}
}