This project is read-only.

XNA + Silverlight Together - Game Control Size

Oct 24, 2011 at 5:26 PM
Edited Oct 24, 2011 at 5:27 PM

I have been trying to resize the game control so that I may use silverlight controls for my game GUI. What I have so far is:

in MainPage.xaml (width=800, height=600):

<game:Game1 x:Name="game" Height="500" Width="800"  />

in Game1.cs:

graphics.PreferredBackBufferHeight = 500;
graphics.PreferredBackBufferWidth = 800;


I've tried a few various things, but whatever I do the game control stretches to fit the size of the container.