public virtual void SetSize(double width, double height)
{
Window.SetDefaultSize ((int)width, (int)height);
if (width == -1)
width = Bounds.Width;
if (height == -1)
height = Bounds.Height;
requestedSize = new Size (width, height);
Window.Resize ((int)width, (int)height);
}