I've created a ListView in Xamarin, I have a custom renderer that renders it as a grouped UITableView. The problem is that the Top Header is taking up space. How do I remove this empty space(margin) in Xamarin C#? I saw a solution in swift and objective-c, but I don't know how to translate it.
This is a solution for Swift:
var frame = CGRect.zero
frame.size.height = 1
tableView.tableHeaderView = UIView(frame: frame)
How can this be done in C#?