// Open GL/TK stuff public static void FitToScreen(FrameworkElement screen, int width, int height) { GraphicsCompanion.SetViewportDimensions((int)screen.Width, (int)screen.Height, width, height); }