private void DrawBackground(CGContext context) { context.SetFillDialogBorderColor(); context.AddRect( new RectangleF(Frame.X - Border, Frame.Y - Border, Frame.Width + 2 * Border, Frame.Height + 2 * Border)); context.DrawPath(CGPathDrawingMode.Fill); context.SetFillDialogBackgroungColor(); context.AddRect(Frame); context.DrawPath(CGPathDrawingMode.Fill); }