I create one page Windows Phone 8.1 Universal App. i want when click on button navigate back to page came from.
private void backbtn_Click(object sender, RoutedEventArgs e)
{
Frame rootFrame = Window.Current.Content as Frame;
if (rootFrame != null && rootFrame.CanGoBack)
{
rootFrame.GoBack();
}
}
the problem is, i want back some parameter like id=10&name=test
i can do it when navigate to Uri
Frame.Navigate(typeof(page1), "id=1");
or
await Windows.System.Launcher.LaunchUriAsync(new Uri("myapp:///id=1"));
but there is no function to do it
Frame rootFrame = Window.Current.Content as Frame;
if (rootFrame != null && rootFrame.CanGoBack)
{
rootFrame.GoBack("some parameter id=10");
}
thanks