Beispiel #1
0
 public override void Draw(GraphicsCache graphics, RectangleF area)
 {
     if (Application.RenderWithVisualStyles && VisualStyleRenderer.IsElementDefined(GetBackgroundElement()))
     {
         if (BorderStyle == BorderStyle.System)
         {
             GetRenderer(GetBackgroundElement()).DrawBackground(graphics.Graphics, Rectangle.Round(area));
         }
     }
     else
     {
         mStandard.Draw(graphics, area);
     }
 }
 public override void Draw(GraphicsCache graphics, RectangleF area, BorderPartType partType)
 {
     if (Application.RenderWithVisualStyles && VisualStyleRenderer.IsElementDefined(GetBackgroundElement()))
     {
         if (BorderStyle == BorderStyle.System)
         {
             GetRenderer(GetBackgroundElement()).DrawBackground(graphics.Graphics, Rectangle.Round(area));
         }
     }
     else
     {
         //[email protected]: for FreezePanes enhancement, draw method is extended by adding a parameter to specify which border should be drawn.
         mStandard.Draw(graphics, area, partType);
     }
 }