TodoApp.iOS.Controls.CalendarMonthView.Draw C# (CSharp) Method

Draw() public method

public Draw ( CGRect rect ) : void
rect CGRect
return void
        public override void Draw( CGRect rect )
        {
            using (CGContext context = UIGraphics.GetCurrentContext()) {
                context.SetFillColor(UIColor.White.CGColor);
                context.FillRect(new RectangleF(0, 0, width, 18 + headerHeight));
            }

            // Add day of week labels (monday, tuesday, etc).
            DrawDayLabels(rect);

            // Displat month header.
            if (showHeader)
                DrawMonthLabel(rect);
        }