migueldeicaza/MonoTouch.Dialog — Issue #78: OwnerDrawnElement Cell Corners
Author: null
Created: 2011-12-02 12:53:26+00:00
State: open

Using the code supplied:

public override void Draw (RectangleF bounds, CGContext context, UIView view)
{
UIColor.White.SetFill();
context.FillRect(bounds);

UIColor.Black.SetColor();
view.DrawString(this.Text, new RectangleF(10, 15, bounds.Width - 20, bounds.Height - 30), UIFont.BoldSystemFontOfSize(14.0f), UILineBreakMode.TailTruncation);
}

the corners seems to be drawn incorrect: http://dl.dropbox.com/u/2600860/Screenshot1.png