Thumbnail View Resource
Source

shevaspace.blogspot.com

Added By

Avatar Actipro on 2007-05-14

Vitals
0score
  • 6748 total views
Summary
Shows how to implement multi-threaded data binding.
Excerpt
"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

http://shevaspace.blogspot.com/2007/03/databinding-multi-threading-in-wpf-part_3600.html

Comments 

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

Add a Comment

Please log in to post comments.

Tags

Tasks

Thumbnail Screenshots by Thumbshots