我试图在Windows Phone 8.1中导航页面时进行网络呼叫,然后使用结果在页面上设置TextBlocks的值,但它似乎总是失败。我看到的解决方案不明确
async protected override void OnNavigatedTo(NavigationEventArgs e)
{
//Make the async call
Dictionary<string, string> result = await BoardService.getBoard((e.Parameter as Board).id);
//use the results to set the text of the TextBlock
txtBlockDesc.Text = result[Constants.SUCCESS];
}
任何帮助将不胜感激。