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;
}
}
}
這種情況與所有挑肥揀瘦。 我使用導航服務使用主頁面導航到此頁面。
可能是什麼問題?