How to start in full screen in Monogame?

I am developing a game using Monogame and C #. I have a wpf application for a menu that starts in full screen. When I click on the game in the menu, I go to the Monogame project. How to run the Monogame solution in full screen, like in the wpf menu?

+6
source share
2 answers

You can set the IsFullscreen property to true .

 //you likely already have this line (or similar) graphics = new GraphicsDeviceManager(this); //set the GraphicsDeviceManager fullscreen property graphics.IsFullScreen = true; 
+7
source

This is the correct way with monogame

 GraphicsDeviceManager graphics; graphics = new GraphicsDeviceManager(this); graphics.ToggleFullScreen(); 
+3
source