WP7中的应用响应速度较差 [英] App poor responsiveness in wp7

查看:66
本文介绍了WP7中的应用响应速度较差的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在图像的managementStarted事件(或Tap Event)中显示一个MessageBox,当我们在V2012中执行商店监视测试时,这导致App响应性较差.这是代码:

I am showing one MessageBox inside manipulationStarted event(or Tap Event ) of an image and that is causing App poor responsiveness when we perform store monitoring test in V2012. Here Is the code:

Xaml图像控件-

Xaml Image control -  

Image Horizo​​ntalAlignment ="左" ="100" VerticalAlignment ="顶部" ="104" 保证金 ="90,60,0,0&"; Grid.Row =" Image_ManipulationStarted_1" =" Background.png"/>

<Image HorizontalAlignment="Left" Height="100" VerticalAlignment="Top" Width="104" Margin="90,60,0,0" Grid.Row="1" ManipulationStarted="Image_ManipulationStarted_1" Source="Background.png"/>

事件代码–

Event Code –

私有 void object 发件人 ManipulationStartedEventArgs

private void Image_ManipulationStarted_1(object sender, ManipulationStartedEventArgs e)

        ;  {

;    var MessageBox " ;这 文件将保存在此处." 文件保存" MessageBoxButton

           var m = MessageBox.Show("The file will be saved here.", "File Save", MessageBoxButton.OKCancel);

        ;    如果 MessageBoxResult

           if (m == MessageBoxResult.OK)

        ;    {

;        int

               int temp = 10;

        ;    }

        }

注意–构建针对WP7,但应用程序正在WP8模拟器上运行. strong>

Note – Build is targeted to WP7 but application is running on WP8 emulator.

知道为什么会这样吗?

在此先感谢 

Thanks in Advance 

推荐答案

嗨Mukesh,

Hi Mukesh,

您能帮您弄清楚您要做什么吗?

Can you help clarify what you are trying to do?

"VS 2012中的商店监视测试" -您的意思是商店测试套件"中的手动测试"吗?

"store monitoring test in VS 2012" - do you mean the Manual Tests in the Store Test Kit?

您所说的应用响应能力是什么意思?当我在上方运行您的代码时,会弹出MessageBox,并且可以单击确定"或取消"而不会出现问题.

What do you mean by app responsiveness? When I run your code above the MessageBox pops up and I can click ok or cancel without an issue.

这里需要MessageBox吗?它看起来像是用于您自己的调试的跟踪语句.如果是这样,则Debug.WriteLine可能会更好.

Do you need a MessageBox here? It looks like a trace statement for your own debugging. If it is then Debug.WriteLine might be better.

安德鲁


这篇关于WP7中的应用响应速度较差的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆