Skip to main content
Home Forums Silverlight Programming Programming with .NET - General how to change content of a control.....if something is changing in my DB
2 replies. Latest Post by Mog Liang - MSFT on July 10, 2009.
(0)
waanil
Member
0 points
1 Posts
07-06-2009 3:17 PM |
Hi all,
I am geting some feed(DB)....and i need to update the content of my control as the new feed comes.
How can i achieve it ..in SilverLight ?
Klinger
Participant
1686 points
300 Posts
07-06-2009 3:30 PM |
Are you binding those controls to a property of an object?
If you are, just implement the INotifyPropertyChanged interface on the class and raise the property changed event for each property.
If you are binding to a collection, use an ObservableCollection.
If you are not binding to an object than your only option is to update the controls in the code behind.
That's all I can say based on the info available on your question.
Mog Lian...
All-Star
15884 points
1,541 Posts
07-10-2009 2:51 AM |
Hi,
If you are using SyndicationFeed to resolve Feed, then you could use LastUpdatedTime property to determine if feed has updated. when feed updated, refill the view control to display latest data.
Thanks,