Binding to a collection of DependencyObjects in Silverlight 4

Posted by Meik on Stack Overflow See other posts from Stack Overflow or by Meik
Published on 2010-05-09T13:16:47Z Indexed on 2010/05/09 19:38 UTC
Read the original article Hit count: 345

As of Silverlight 4 it is possible to data bind against a DependencyObject (instead of a Framework element in previous versions). So far so good, but how do I bind agains a collection of DependencyObjects.

The DataContext is not passed from the ObservableCollection to the collection elements, so that the DependencyProperties of the DependencyObjects are never called (neither the changed events). Neither the DependencyObject offers SetBinding or DataContext to initialize the binding manually.

Thanks for any advice here.

© Stack Overflow or respective owner

Related posts about silverlight-4.0

Related posts about dependencyobject