[urgent] Click secondary magnet can directly open the internal application, such

StandardTileData tileFly = new Microsoft.Phone.Shell.StandardTileData
{
Title = "Flight mode",
BackTitle = "Shortcuts assistant",
BackContent = "Opening and closing the flight mode",
BackgroundImage = new Uri("Assets/sucai/ciji_fly.png", UriKind.RelativeOrAbsolute),
BackBackgroundImage = new Uri("Assets/sucai/ciji_back.png", UriKind.RelativeOrAbsolute),
};
ShellTile.Create(new Uri("/Quick_Fly.xaml?act=fly", UriKind.Relative), tileFly);
}
}

Write a method in a Quick page open Bluetooth can, but also to show what the Quick page back, how can not display the Quick page? And great advice!

Started by Maxine at December 13, 2016 - 9:52 PM


protected override void OnNavigatedFrom(NavigationEventArgs e)
{
if (this.NavigationService.CanGoBack)
{
this.NavigationService.RemoveBackEntry();
}
}


Override the OnNavigatedFrom method of the page navigation, remove the back stack.

Posted by Boyd at December 21, 2016 - 10:36 PM

64602

Posted by Maxine at December 24, 2016 - 11:07 PM

The 64602 is what things, , ,

Posted by Boyd at January 03, 2017 - 11:35 PM

I do not know your problem solving not, I also encountered this problem at hand when. See the solution moderators, feeling quite on theory, but I'm in a secondary magnet this page to override this method. Trace breakpoint, [this.NavigationService] CanGoBack, CanGoForward false. For us.~

Posted by Cleveland at January 10, 2017 - 12:40 AM

Remove the back stack is not good here, turn on Bluetooth, WiFi which has specialized URI call, refer to the following:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207014(v=vs.105).aspx#BKMK_LaunchingbuiltinappsviaURI
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj662937(v=vs.105).aspx

ShellTile.Create(new Uri("/Quick_Fly.xaml?act=fly", UriKind.Relative), tileFly);
This sentence in your URI directly replace URI here

Posted by Simon at January 13, 2017 - 12:24 AM