WPF-没有屏幕更新 [英] WPF - No Update of Screen

查看:93
本文介绍了WPF-没有屏幕更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个小程序来计算数据迭代并将其显示在wcf屏幕上.该执行作为服务运行,由外部程序触发.
第一个Iteratin始终是完美的.当第二次运行被触发时,外部应用程序将通过wcf获得正确的响应,但不会更新屏幕(wpf).

您是否对我有任何暗示,特别是从哪里获得有关WCF的信息.关于我的应用程序中的数据更改,卵石不会更改"的问题?

问候

martin

Hi,

I have a small programm calculating data iterative and presenting them on a wcf-screen. The execution is running as a service, triggered by an external programm.
The first iteratin always is perfect. When in a second run is triggered, the external application get''s the correct response via wcf, but no update of the screen (wpf).

Do you have a hint for me where to get good wcf information, esp. regarding my problem of "data changes in app, scree does not change"?

Regards

martin

推荐答案

确保您的数据位于可观察的集合中,以便在数据更改时更新UI.

如果需要更具体的建议,请发布一些代码.另一个可能的问题是,您正在主线程上不断更新,并且UI不能跟上进度?
Make sure your data is in an observable collection, so that the UI is updated when the data changes.

Post some code if you want more specific advice. The other possible issue is that you are updating constantly on the main thread and the UI does not catch up ?


这篇关于WPF-没有屏幕更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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