c# - Windows Phone 8.1 LongListSelector does not automatically update on data refresh -
i have simple longlistselector displaying data. when modify record, longlistselector not display changes. want that, when record changes, longlistselector automatically displays changes. how can that? there way force longlistselector display updated data?
edit:
data stored in observablecollection , added longlistselector using datacontext.
following guide, understand mvvm pattern , solve problem. in case, model did not implement inotifypropertychanged, model did not notify view changes. in order sync view , model:
- model must implement inotifypropertychanged, propertychangedeventargs() event can raised when properties has changed.
- the collection (data) must observablecollection.
- finally, use binding sync model , view.
Comments
Post a Comment