public override void DrawRect (RectangleF dirtyRect)
{
bool shouldDraw = true;
using (var graphics = Graphics.FromHwnd (this.Handle))
{
var events = new PaintEventArgs (graphics, Rectangle.Round (dirtyRect));
Host.Draw (events);
shouldDraw = !events.Handled;
}
if (shouldDraw)
base.DrawRect(dirtyRect);
}
/*