列表框未在Windows Phone 8中更新 [英] List box is not updating in Windows Phone 8

查看:96
本文介绍了列表框未在Windows Phone 8中更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在开发一个应用程序,因为我有3页。在第一页我有一些数据列表框,在第三页我有导航到第一页的应用程序栏。我将从服务器获取列表框数据。每当我使用
服务器数据绑定列表框时,它就会正确呈现,但如果用户使用应用程序栏从第3页导航到第1页,则列表框不会使用新数据进行更新,它仍然显示旧数据。如果用户使用后退键进入第一页,则新数据为
渲染。



我使用observable collection绑定List Box数据并使用NavigationService。 Naviagte()用于导航。 



帮助我解决此问题。

提前致谢。



Santosh Kumar Kotta

Hello all,

I am developing one application, in that I have 3 pages. In first page I have List Box with some data and in 3rd page I have application bar for navigating to first page. I will get the list box data from the server. Whenever I am binding the List Box with server data, it is rendering properly but if the user navigate from 3rd page to 1st page using application bar then List box is not updating with fresh data, it is still displaying old data. If user comes to first page using back key press then new data is rendering.

I am using observable collection to bind List Box data and used NavigationService.Naviagte() for navigation. 

Help me to resolve this issue.
Thanks in advance.


Santosh Kumar Kotta

推荐答案

在不知道加载数据的位置和更多信息的情况下真的很难帮到你。  特别是因为它可以工作一段时间。 你可以分享样本代码吗?
Without knowing where you load the data and more information it is really hard to help you.  Especially since it works some times.  can you share sample code?


这篇关于列表框未在Windows Phone 8中更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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