3
我有使用各种选择器的问题。 当我启动其中一个应该返回到我的应用程序时,我所得到的是一个“恢复”屏幕,并且进度条动画显示不完整。按回或开始按钮什么也不做,过了一段时间它会进入主屏幕。而应用程序的再次推出缓慢。Windows Phone芒果选择器
这发生在模拟器上以及在移动本身。
使用失败回来是一个选择器我班的一个示例:
public partial class Add : PhoneApplicationPage
{
GameInviteTask gameInviteTask;
public Add()
{
InitializeComponent();
gameInviteTask = new GameInviteTask();
gameInviteTask.Completed += new EventHandler<TaskEventArgs>(gameInviteTask_Completed);
}
private void TextBox_Tap(object sender, System.Windows.Input.GestureEventArgs e)
{
try
{
gameInviteTask.SessionId = "<my session id>";
gameInviteTask.Show();
}
catch (System.InvalidOperationException ex)
{
MessageBox.Show("An error occurred when choosing an email contact.");
}
}
void gameInviteTask_Completed(object sender, TaskEventArgs e)
{
switch (e.TaskResult)
{
//Game logic for when the invite was sent successfully
case TaskResult.OK:
MessageBox.Show("Game invitation sent.");
break;
//Game logic for when the invite is cancelled by the user
case TaskResult.Cancel:
MessageBox.Show("Game invitation cancelled.");
break;
// Game logic for when the invite could not be sent
case TaskResult.None:
MessageBox.Show("Game invitation could not be sent.");
break;
}
}
}
这种情况与所有挑肥拣瘦。 我使用导航服务使用主页面导航到此页面。
可能是什么问题?