Previosuly i have the photo chooser task in my app.
But when i change to windows phone 7.1 the chooser is launched but when i clicked on the image it suppose to navigate to anothe开发者_JAVA百科r page.
The code:
photoChooserTask.Show();
void photoChooserTask_Completed(object sender, PhotoResult e)
{
if (e.TaskResult == TaskResult.OK)
{
App.globalData.bitmapImage.SetSource(e.ChosenPhoto);
NavigationService.Navigate(new Uri("/ChangePhoto.xaml", UriKind.Relative));
}
}
The error is once i clicked on the image "System.Diagnostics.Debugger.Break();"
There are System.Diagnostics.Debugger.Break
calls in the app.xaml.cs file. They are there for unhandled exceptions and navigation errors. The error will be in the method argument, review it when the debugger breaks.
Navigation errors are very likely incorrect URI paths.
精彩评论