I set the width and height of the window in my game constructor, and then pass the graphics manager to a class to check the value. In the game's initialize function, it doesn't seem to recognize the new width and height values, so it uses the default.
Here's relevant code:
Game1.cs Constructor:
graphics = new GraphicsDeviceManager(this);
graphics.PreferredBackBufferWidth = 1600;
graphics.PreferredBackBufferHeight = 900;
Content.RootDirectory = "Content";
World = new TestWorld(Content, graphics);
Game1.cs Initialize
World.Initialize();
TestWorld Initialize
Debug.WriteLine(Graphics.GraphicsDevice.Viewport.Width);
The TestWorld Initialize outputs the default (800).
I have tried graphics.ApplyChanges(), but it does not resolve the issue.