使Silverlight和C ++中开发的部分屏幕无效 [英] Invalidating the portion of the screen developed in Silverlight and C++

查看:77
本文介绍了使Silverlight和C ++中开发的部分屏幕无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在WInce6.0平台上使用Silverlight2.0和C ++中的代码。这是一个实时系统。所以在这个我有屏幕,我必须每隔500毫秒(时间)和条形(用IXRRectangle实现)闪烁冒号,这必须显示信号的变化。该条应该每50毫秒反映一次。除此之外,我还有其他几个线程在25,500分钟内运行等等.silverlight提供了一些强制更新屏幕的功能,如UI元素界面中的InvalidateArrange(),UpdateLayout()。我尝试用这些功能更新屏幕,这样我就可以只发出屏幕的一部分。但这不起作用。所以我目前正在做的是每500毫秒运行一个计时器并调用InvalidateRect()来刷新整个屏幕。这会对性能产生很大影响。当我查看实例的性能时,刷新正在发生,我的25毫秒线程大约需要70毫秒。这会影响我整个项目的表现。



任何人都可以为此建议一个解决方法。



谢谢

Ajai

Hi,
I am working with a code in Silverlight2.0 and C++ on WInce6.0 platform. This is meant to be a real time system. So in this i have screens where i have to blink a colon every 500millisecond( for time) and bar( implemented with a IXRRectangle) which has to show the variation of the signal. This bar is supposed to get reflected every 50 millisecond. In addition to this i have several other thread running in 25,500 one minute etc. The silverlight provides some function to force update the screen like InvalidateArrange(), UpdateLayout() in the UI elements interface. i tried updating the screen with these function so that i can invaidate only the portion of the screen. But this is not working. So currently what i am doing is running a timer every 500millisecond and calling InvalidateRect() to refresh the entire screen. This affects the performance a lot. When i looked in to the performance at the instance when the refreshing is happening the my 25 millisecond thread is taking around 70 millisecond. this affects my entire project performance.

Can any one please suggest a workaround for this.

Thanks
Ajai

推荐答案

如果Control.Refresh()不起作用,试试这个:



http://stackoverflow.com/questions/4759572/how-can -i-refresh-silverlight-controls [ ^ ]
If Control.Refresh() does not work, try this:

http://stackoverflow.com/questions/4759572/how-can-i-refresh-silverlight-controls[^]


这篇关于使Silverlight和C ++中开发的部分屏幕无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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