Please make this page the start page by opening the package.appxmanifest file and setting the Start Page property.

You can see when each event happens by looking in the Visual Studio JavaScript Console window.