I’m working on app where you can manipulate with some settings of object and look at the result, built with MonoGame.
Now app consist of one activity with ViewPager, consisting of 3 pages (saved states, state edit & preview using monogame). While pages with standard views work as expected, view with monogame stays blank (though layout is loaded). I set OffScreenPages to 3, so every page is instantiated only once – still no effect.
Another problem is when I try to load model, I get NullReferenceException saying GraphicsDevice is null. When I run Game.Run(), nothing happens (I set breakpoints on LoadContent and Initialize methods – they weren’t hit).
The question in – can I solve this using ViewPager? Or should I switch to another container?