using League_of_legendes2.ViewModel; using VeiwModel; namespace League_of_legendes2; public partial class MainPage : ContentPage { public MainVM mainVM { get; set; } //readonly StubData MyStub = new(); public ManagerVM managerVM { get; private set; } public MainPage(ManagerVM managerVM) { this.managerVM = managerVM; InitializeComponent(); BindingContext = this; } public async void OnChampSelection(object sender, ItemTappedEventArgs args) { ChapionVM x = args.Item as ChapionVM; managerVM.SelctedChampVM = args.Item as ChapionVM; Console.Write("hello"); //mainVM.OnChampSelection(x); // mainVM.GoDetail.Execute(); await Navigation.PushAsync(new Pages.Details(x)); } //public async void goTOUpdate(object sender, System.EventArgs e) //{ // await Navigation.PushAsync(new Pages.ChampForm()); //} }