public override void DrawInContext(MonoTouch.CoreGraphics.CGContext ctx) { base.DrawInContext (ctx); float radius = Math.Min(this.Bounds.Width, this.Bounds.Height)/2; PointF center = new PointF (this.Bounds.Width / 2, this.Bounds.Height / 2); //Background Circle ctx.AddEllipseInRect(new RectangleF(center.X,center.Y, radius *2, radius *2)); ctx.SetFillColor(TrackColor.CGColor); ctx.FillPath(); // Elapsed Arc ctx.AddArc(center.X,center.Y,radius, StartAngle, (float)(StartAngle + Progress * 2.0f * Math.PI),false); ctx.AddLineToPoint(center.X,center.Y); ctx.ClosePath(); ctx.SetFillColor(TintColor.CGColor); ctx.FillPath(); }