protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); employees = EmployeeManager.GetAll(); ListAdapter = new RootAdapter(this, employees); ListView.ItemClick += (s, ea) => { var employeeDetails = new Intent(this, typeof(DetailActivity)); employeeDetails.PutExtra("EmployeeId", employees[ea.Position].Id); StartActivity(employeeDetails); }; }
NSString cellIdentifier = new NSString("EmployeeCell"); // set in Storyboard public RootViewSource() { employees = EmployeeManager.GetAll(); }