O'Reilly logo

3D Game Development with Microsoft Silverlight 3 Beginner's Guide by Gastón C. Hillar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action—solving navigation problems

When the game starts, there is an undesired side effect. The projected video appears in the right background, as shown in the following screenshot:

Time for action—solving navigation problems

This usually happens when working with projections. Now, we are going to solve this small problem:

  1. Stay in the 3DInvadersSilverlight project.
  2. Open MainPage.xaml.cs and add the following line before the first one in the medIntroduction_MediaEnded method:
    cnvVideo.Visibility = Visibility.Collapsed;
    
  3. Build and run the solution. Click on the button and after the video reproduction and animation, the game will start without the undesired background, as shown in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required