using ViewModel; namespace App.Pages; public partial class ChampionsListPage : ContentPage { public ChampionManagerVM ChampionManagerVM { get; private set; } public ChampionsListPage(ChampionManagerVM championManagerVM) { ChampionManagerVM = championManagerVM; InitializeComponent(); BindingContext = ChampionManagerVM; } async void AddClicked(System.Object sender, System.EventArgs e) { await Navigation.PushAsync(new ChampionAddEditPage()); } async void ListView_ItemSelected(System.Object sender, Microsoft.Maui.Controls.SelectedItemChangedEventArgs e) { await Navigation.PushAsync(new ChampionDetailPage(e.SelectedItem as ChampionVM)); } }