parent
27a9e85563
commit
155670e292
@ -1,20 +1,22 @@
|
||||
using ClientMAUI.VMApp;
|
||||
using VM;
|
||||
|
||||
namespace ClientMAUI.Views.Pages;
|
||||
|
||||
public partial class ChampionListPage : ContentPage
|
||||
{
|
||||
public DataManagerVM _dataManagerVM { get; private set; }
|
||||
public ChampionListPageVM VMApp { get; private set; }
|
||||
|
||||
public ChampionListPage(DataManagerVM dataManager)
|
||||
{
|
||||
_dataManagerVM = dataManager;
|
||||
VMApp = new ChampionListPageVM(dataManager);
|
||||
InitializeComponent();
|
||||
BindingContext = _dataManagerVM;
|
||||
BindingContext = VMApp;
|
||||
}
|
||||
|
||||
async void ListView_ItemTapped(System.Object sender, Microsoft.Maui.Controls.ItemTappedEventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new ChampionDetail((sender as ListView).SelectedItem as ChampionVM));
|
||||
(sender as ListView).SelectedItem = null;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue