Is there an equivalent DependencyObjectCollection <T> for WPF.NET4.0?
The class allows you to extend the context of data from the collection to its members. But this is only for SilverLight.
More information about DepedencyObjectCollection can be found in this post.
If the equivalent does not exist, what are the necessary steps to create it?
I observe desire behavior from the RowDefinitionCollection class. But I could not understand its implementation.
thanks
Short answer: NO.
But I no longer think this is the right implementation. I end up using the FrameworkElement collection and adding them to the LogicalChildren of a custom control. This way, the DataContext is passed to the FrameworkElement in a natural way, and everything works as expected.
It seems that the RowDefinition class is implemented in .NET 4.0. However, the version of RowDefinition Silverlight is derived directly from DependencyObject. The MSDN document shows the default Silverlight documentation and misdirected me to an older and incorrect approach.