Reputation: 75
In my current code I pass the UI elements I need to update to a central class that is retriving data and runs diffrent threads. In this class I then update the UI via a Dispatcher. My question would be if this falls under Best Practices and if not how would I best notify the main thread that new data and the UI is need of updating?
Upvotes: 0
Views: 313
Reputation: 5202
I think the best way is to use data binding in WPF to keep the controls updated and synced with the data.
Upvotes: 1