2011-11-06 95 views
3

我有使用各种选择器的问题。 当我启动其中一个应该返回到我的应用程序时,我所得到的是一个“恢复”屏幕,并且进度条动画显示不完整。按回或开始按钮什么也不做,过了一段时间它会进入主屏幕。而应用程序的再次推出缓慢。Windows Phone芒果选择器

choosers problematic

这发生在模拟器上以及在移动本身。

使用失败回来是一个选择器我班的一个示例:

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; 
      } 
     } 

    } 

这种情况与所有挑肥拣瘦。 我使用导航服务使用主页面导航到此页面。

可能是什么问题?

回答

1

我已经找到了问题...

不幸的是,当乱投医是从运行敲打事件的文本框中IsReadOnly删除我没有尝试的唯一的事情。

所以这是一个错误微软:/

的Windows手机7.1:当您从有IsReadOnly真正的文本框的点击事件中运行他们挑肥拣瘦不工作。

我会把它留在这里,这样可以帮助别人。