Getting width of Monotouch.Dialog UIViewElement?

I'm trying to make a UIView (for a UIViewElement), but how do I get the borders (at least the width) of this UIViewElement?

Thanks Mojo

+5
source share
1 answer

The UIViewElement simply takes the view you pass to the constructor and adds it to the ContentView UITableViewCell.

Since the cells are dynamic, and not all of them are the same size ...

I would recommend subclassing the UIViewElement with the ContentViewBounds property and setting this value inside the GetCell method for your custom item.

+3
source

All Articles