I did this:
protected override void OnLaunched(LaunchActivatedEventArgs args)
{
var gamePage = Window.Current.Content as GamePage;
// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (gamePage == null)
{
// Create a main GamePage
gamePage = new GamePage(args.Arguments);
if (args.PreviousExecutionState == ApplicationExecutionState.Terminated)
{
// TODO: Load state from previously suspended application
}
// Place the GamePage in the current Window
Window.Current.Content = gamePage;
//Window.Current.Content = rootFrame;
//Window.Current.Activate();
}
// Ensure the current window is active
Window.Current.Activate();
}
But can't see the cursor/mouse moving on top of the content of this gamePage (inside the current window).
Why is this?