This is a migrated thread and some comments may be shown as answers.

Updating Appointments in backgroundworker

1 Answer 107 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Cameron
Top achievements
Rank 1
Cameron asked on 28 Jul 2015, 10:55 AM

Hey,

I am trying to get my appointments to update in a backgroundworker. I have the backgroundworker up and running but when I assign my appointments to the ObservableCollection on the viewmodel  in the RunWorkerCompleted and fire the NofityPropertyChanged I get an error "Must create DependencySource on same Thread as the DependencyObject." I do not get this error when notifying of changes to strings and ints. Do you know of any reasons why the NotifyPropertyChanged would not work. 

 Thanks

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 30 Jul 2015, 07:56 AM
Hi Cameron,

What I can suggest you would be to check how our BusyIndicator First Look example is implemented (it loads the ScheduleView appointments through a BackgroundWorker):
http://demos.telerik.com/silverlight/#BusyIndicator/FirstLook

As for the exception you check the answers of the following forums and see if the proposed solutions will help.

http://stackoverflow.com/questions/26012793/must-create-dependencysource-on-same-thread-as-the-dependencyobject-when-bind

https://social.msdn.microsoft.com/Forums/en-US/9b96e34d-f7d4-41bb-b793-0cdc08fb3618/must-create-dependencysource-on-same-thread-as-the-dependencyobject?forum=wpf

Hope this helps.

Regards,
Kalin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ScheduleView
Asked by
Cameron
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or