如何以Monogame全屏开始?

Din*_*uro 7 c# wpf monogame

我正在使用Monogame和C#开发游戏.我有一个wpf应用程序,用于全屏启动的菜单.当我点击菜单上的播放时,我会进入Monogame项目.如何在全屏启动Monogame解决方案,就像使用wpf菜单一样?

key*_*rdP 9

您可以将IsFullscreen属性设置为true.

//you likely already have this line (or similar)
graphics = new GraphicsDeviceManager(this);

//set the GraphicsDeviceManager's fullscreen property
graphics.IsFullScreen = true;
Run Code Online (Sandbox Code Playgroud)

  • 切换通过设置isFullScreen标志然后设置graphics.ApplyChanges(); (2认同)