// Constructor public GamePage() { InitializeComponent(); _game = XamlGame <WindowResizeGame> .Create("", this); // Sample code to localize the ApplicationBar //BuildLocalizedApplicationBar(); }
//------------------------------------------------------------------------------------- // Class constructors public CubeObject(WindowResizeGame game) : base(game) { // Have we already built the cube vertex array in a previous instance? if (_vertices == null) { // No, so build them now BuildVertices(); } Position = new Vector3(0, 0, -3); }