Using: InfragisticsSL4.Controls.Menus.XamDataTree.v11.1.dll Version: 11.1.20111.2115
The StackTrace of the exception is attached. I couldn't determine a way to include in this body without wacky re-formatting. Please let me know the best way to include code, etc.
No time right now to create a short example that demonstrates the problem. So, I'm including hopefully a clear descrition so you can see my scenario.
I have an XamDataTree whose ItemsSource is a CollectionViewSource whose Source is a hierarchical ObservableCollection. The exception occurs when I add an item to the collection and then call Refresh() on the CollectionViewSource. I have switched to a Silverlight TreeView and no longer get the exception. But, I'm missing some of the functionality afforded by your control and would like to get this issue resolved.
Please help ASAP.
Hello jgreene274,
I have been looking into your issue and have tried to create a sample in order to reproduce the problem. I am attaching it , so you could review it and modifiy it in your case. I was able to successfully add items to XamDataTree in that sample. I am awaiting your response. Thank you in advance!
Regards,
Nikola.
Hi Nikola,
I have added line 28 to MainPage.xaml.cs: "dataSource.View.Refresh();" Although the stacktrace for the NullReferenceException is different, I believe this pretty well mimics my application. I have attached the modified MainPage.xaml.cs.
Oh, although I don't believe it impacts the result, there is one other thing I changed. I changed the Infragistics references from 10.3 to 11.1.
Thank you very much for your help,
Joe