public override nfloat GetHeightForRow(UITableView tableView, NSIndexPath indexPath) { nfloat origHeight = originalSource.GetHeightForRow(tableView, indexPath); // calculate your own row height here ObservableCollection <Employee> employees = myListView.ItemsSource as ObservableCollection <Employee>; string displayName = employees[indexPath.Row].DisplayName; nfloat height = MeasureTextSize(displayName, UIScreen.MainScreen.Bounds.Size.Width - 50, UIFont.SystemFontSize, null); return(height); }
public override nfloat GetHeightForRow(UITableView tableView, NSIndexPath indexPath) => Source.GetHeightForRow(tableView, indexPath);