Search code examples
windows-phone-7silverlight-toolkit

Windows Phone 7 Toolkit: How to reload the data in the Loopingselector control?


I'm using the LoopingSelector to show a series of timestamps. As time progresses, I'd like to update the timestamps in the looping selector.

I have a class that implements the ILoopingSelectorDataSource interface, but I can't figure out how to force the data to reload while the control is showing.


Solution

  • Claus is partially correct, there doesn't seem to be a way to use binding to update the control, but in code behind, calling

    LoopingSelector.DataSource = new MyLoopingSelectorDataSource() // your implementation of the ILoopingSelectorDataSource interface

    will cause the control to reload data.