コード例 #1
0
 // Open GL/TK stuff
 public static void FitToScreen(FrameworkElement screen, int width, int height)
 {
     GraphicsCompanion.SetViewportDimensions((int)screen.Width, (int)screen.Height, width, height);
 }