protected override async void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); await Vm.InitAsync(); PeopleListView.Adapter = Vm.People.GetAdapter(GetPersonView); AddPersonButton.SetCommand("Click", Vm.AddPersonCommand); RemovePersonButton.SetCommand("Click", Vm.RemovePersonCommand); }
protected override async void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); await Vm.InitAsync(); // Get our button from the layout resource, // and attach an event to it PeopleListView.Adapter = Vm.People.GetAdapter(GetPersonView); }