Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
XamDataTree use of an object derived from ObservableCollection<T> does not work when used as ItemsSource
posted

I have a XamDataTree defined and am using an object that is derived from the ObservableCollection<T> object.

public class NonWorkingParentItems : ObservableCollection<NonWorkingParentItem>, INotifyCollectionChanged,

INotifyPropertyChanged

{

...

}

When I create the object, add items to it and then set the ItemsSource on the XamDataTree the data never shows up in the tree.

If I create the ObservableCollection<NonWorkingParentItem> and set the ItemsSource to this everything works fine.

While I know I can use this method it falls out of line to how we code things and it really does not make sense why the other would not work.

I have attached a sample project that demonstrates the issue.

I would appreciate an explaination and/or a solution to resolve this issue.

XamDataTreeIssue.zip