SupportedOrientation controls available orientations on the app. This property is only used on devices which can be used in portrait and landscape modes (not available on desktop platforms, Xbox One).
The following code can be used to set the game to run in portrait mode:
Note that additional code is required for each platform, as shown below.
SupportedOrientations property must be assigned in the Game's constructor, after the graphics instance has been initialized. Assigning the orientation later, such as in initialize methods, may result in unexpected behavior.
Setting the orientation through SupportedOrientation also requires additional changes per-platform.
The orientations set on SupportedOrientation should match the orientations set in Activity1.cs on the Activity attribute, as shown in the following code:
Introduction The GraphicsDeviceManager class provides high-level methods, properties, and events related to MonoGame's graphics device. It is automatically created in the Game1 class.