// Constructor
        public GamePage()
        {
            InitializeComponent();

            _game = XamlGame <IsometricGame> .Create("", this);

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }
        //-------------------------------------------------------------------------------------
        // Class constructors

        public CubeObject(IsometricGame game, Vector3 position, Color objectColor)
            : base(game)
        {
            // Set properties
            Position    = position;
            ObjectColor = objectColor;

            _scalePos = GameHelper.RandomNext(0, MathHelper.TwoPi);

            // Have we already built the cube vertex array in a previous instance?
            if (_vertices == null)
            {
                // No, so build them now
                BuildVertices();
                // Create a vertex buffer
                _vertexBuffer = new VertexBuffer(game.GraphicsDevice, typeof(VertexPositionNormalTexture), _vertices.Length, BufferUsage.WriteOnly);
                _vertexBuffer.SetData(_vertices);
            }
        }