protected override void OnDraw(GraphicsCache graphics, RectangleF area) { base.OnDraw(graphics, area); if (Application.RenderWithVisualStyles && VisualStyleRenderer.IsElementDefined(GetBackgroundElement())) { GetRenderer(GetBackgroundElement()).DrawBackground(graphics.Graphics, Rectangle.Round(area)); } else { mStandardHeader.Draw(graphics, area); } }
protected override void OnDraw(GraphicsCache graphics, RectangleF area) { base.OnDraw(graphics, area); mBackground.Draw(graphics, area); }