Thumbnail View Resource

Added By

Avatar Actipro on 2007-05-14

  • 6625 total views
Shows how to implement multi-threaded data binding.
"One of the scenario I think the current version of WPF hasn't done enough is the multi-threaded data binding. Imagine your UI is data bound to a data source collection whose items are modified(added, removed, cleared etc) from another thread rather than the UI thread. you will get the following exception: This type of CollectionView does not support changes to its SourceCollection from a thread different from the Dispatcher thread. Actually, generic data source collections are actually free-threaded(I mean free-threaded not thread safe), but WPF's implementations of CollectionView(such as BindingListCollectionView for ADO.NET data source and ListCollectionView for general purpose data collections) are actually single-threaded, If you look at the base class of CollectionView, you can see that It directly derives from DispatcherObject, this tells us that CollectionViews are actually Disptacher affinitized, because Dispatchers are tied to the thread which creates them, so Collecti..."
Full Link


There aren't any comments yet for this resource. Be the first to add one!

Add a Comment

Please log in to post comments.



Thumbnail Screenshots by Thumbshots