using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Windows.Forms;
using Divelements.Navisight;
namespace CustomOffice2003Renderer
{
public class CustomOffice2003Renderer: Divelements.Navisight.Rendering.Office2003Renderer
{
public override void PaintBackground(Graphics graphics, Rectangle bounds)
{
SolidBrush background = new SolidBrush(Color.White);
graphics.FillRectangle(background, bounds);
base.PaintBackground (graphics, bounds);
background.Dispose();
}
public override void PaintCategoryBackground(Graphics graphics, Rectangle bounds)
{
SolidBrush background = new SolidBrush(Color.White);
graphics.FillRectangle(background, bounds);
base.PaintCategoryBackground (graphics, bounds);
background.Dispose();
}
}
}
I'm calling it like this:
this.TaskItemsButtonBar.Renderer = new CustomOffice2003Renderer();