public override void Draw(RectangleF bounds, MonoTouch.CoreGraphics.CGContext context, UIView view) { // Remove subviews from superview if already added if (view.Subviews.Length > 0) { // Remove view from subview view.Subviews [0].RemoveFromSuperview (); } // Set the frame of the UIDatePicker to the incoming bounds this.DatePicker.Frame = bounds; // Set backgroundcolor to white UIColor.White.SetFill (); // Fill background context.FillRect (bounds); // set font to black UIColor.Black.SetColor (); // add date picker to view view.AddSubview (this.DatePicker); }