I am using silverlight and I am unsure about a better solution to my problem. I couldnt download a working example of this
I have a game with say 2 levels and each level has a number of images.
I have a screen menu.
My current solution is
I load the first level on mainpage.xaml.vb and when I goto the next level I erase all screen objects from level1 and then add all the level2 objects on the screen. So I am reusing the same page with different classes and images etc.
A screen menu was just a popup image I am using over the current level.
My desired solution is
What I wanted was to load the level 1 objects on page1.xaml.vb and level 2 objects on page2.xaml.vb with classes etc.
Switching levels would be to just signal what page to display and unload the other via another a mainPage.