public override void DrawRect (RectangleF dirtyRect)
{
RectangleF bounds = Bounds;
SizeF stripeSize = bounds.Size;
stripeSize.Width = bounds.Width / 10.0f;
RectangleF stripe = bounds;
stripe.Size = stripeSize;
NSColor[] colors = new NSColor[2] { NSColor.White, NSColor.Blue };
for (int i = 0; i < 10; i++){
colors[i % 2].Set();
NSGraphics.RectFill(stripe);
PointF origin = stripe.Location;
origin.X += stripe.Size.Width;
stripe.Location = origin;
}
}