/// <summary>
/// Draws black in the areas outside the view.
/// Assumes that controlBounds is starting at (0, 0) in upper left corner.
/// </summary>
/// <param name="context">A context to perform drawing.</param>
/// <param name="controlBounds">Bounds of the control.</param>
/// <param name="view">The bounds of the view.</param>
public static void Draw(Context context, Rectangle controlBounds, Rectangle view)
{
context.Color = new Cairo.Color (0.0, 0.0, 0.0);
context.NewPath ();
context.Rectangle (0.0, 0.0, view.X, controlBounds.Height);
var wRight = controlBounds.Width - view.X - view.Width;
context.Rectangle (view.X + view.Width, 0.0, wRight, controlBounds.Height);
context.Rectangle (view.X, 0.0, view.Width, view.Y);
var hBottom = controlBounds.Height - view.Y - view.Height;
context.Rectangle (view.X, view.Y + view.Height, view.Width, hBottom);
context.Fill ();
}