protected override void OnCreate(Bundle bundle) { base.OnCreate (bundle); // Set our view from the "main" layout resource SetContentView (Resource.Layout.Master); ListAdapter = new MasterAdapter(this, ViewModel.Items); ListView.ItemLongClick += (sender, e) => { ViewModel.DeleteCommand.Execute(e.Position); ((MasterAdapter)ListAdapter).NotifyDataSetChanged(); }; }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Master); ListAdapter = new MasterAdapter(this, ViewModel.Items); ListView.ItemLongClick += (sender, e) => { ViewModel.DeleteCommand.Execute(e.Position); ((MasterAdapter)ListAdapter).NotifyDataSetChanged(); }; }