重新绑定或刷新枢轴控件 [英] Rebind or Refresh Pivot Control

查看:93
本文介绍了重新绑定或刷新枢轴控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海,

         谁能告诉我如何在Windows Phone 8中重新绑定或刷新数据透视控件.谢谢!

           Can anyone pls tell me how to Rebind or Refresh Pivot Control in windows Phone 8.Thanks in Advance

推荐答案

如果数据透视控件绑定了到ObservableCollection,则该过程是自动的.一般来说,视觉元素都是这样.例如,如果您清除集合,则视觉显示将自动更改.您还可以更改.DataContext.

If the Pivot control is bound to an ObservableCollection, then the process is automatic. This is true for visual elements in general.  For example if you .Clear the collection, the visual display will change automatically. You can also change the .DataContext.

可以找到一些示例代码

Some sample code can be found here.

-马克


这篇关于重新绑定或刷新枢轴控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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