Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MonoTouch.Dialog UITableView without margins

How can I create UITableView with MonoTouch.Dialog which has no margins?

At the moment once you create new Section it will add margins around the table and makes elements rounded. I want the look of simple UITableView which has no margins (top, left, bottom etc.), is this achievable anyhow?

like image 911
ErnestJ Avatar asked Oct 01 '12 08:10

ErnestJ


1 Answers

I think what you want is to create your DialogViewController with the UITableViewStyle.Plain style. E.g.

var root = new RootElement ();
var d = new DialogViewController (UITableViewStyle.Plain, root);

The default style value is UITableViewStyle.Grouped and gives each element a rounded-rect look.

like image 196
poupou Avatar answered Oct 21 '22 02:10

poupou