开发者

Navigation fails after updating WP7.0 project to WP7.1

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜