protected override void OnLaunched(LaunchActivatedEventArgs e)
{
#if DEBUG
if (System.Diagnostics.Debugger.IsAttached)
{
this.DebugSettings.EnableFrameRateCounter = false;
}
#endif
CreateRootFrame(e.PreviousExecutionState, e.Arguments);
// Ensure the current window is active
Window.Current.Activate();
}