public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { listView.NotifyItemSelected(tableItems [indexPath.Row]); Console.WriteLine("Row " + indexPath.Row.ToString() + " selected"); tableView.DeselectRow(indexPath, true); }
public override void SelectionDidChange(NSNotification notification) { var selectedRow = (int)_nsTableView.SelectedRow; if (selectedRow == -1) { return; } _listView.NotifyItemSelected(_tableItems[selectedRow]); Console.WriteLine("Row " + selectedRow.ToString() + " selected"); _nsTableView.DeselectRow(selectedRow); }