Two questions:
Specific one: I'm adding an item to the ObservableCollection my XamCarouselListBox is bound to. Then I call ItemContainerGenerator.ContainerFromIndex that returns null. Any reason it cannot find item I just added? Snooper does show it.
Generic one: Is there any way I can purshase source code for NetAdvantage for WPF? I'm having multiple problems, some caused by bugs, others caused by my lack of understanding; having source code would've helped me out.
Thank you.
I'm sorry for chiming in here late. I know you're not using it anymore but in case another customer encounters this issue I'll explain what's happening. The XamCarouselListBox derives from our RecyclingItemsControl. In order to provide the recycling functionality it makes use of its own IItemContainerGenerator and since the ItemsControl does not allow you to provide a custom IItemContainerGenerator, the one exposed by the ItemsControl (the base class of RecyclingItemsControl) is not used when the XamCarouselListBox is recycling which is why it was returning null. By default the ItemContainerGenerationMode is set to Recycle so in that case you would need to use the ContainerFromIndex on the RecyclingItemContainerGenerator.
Unfortunately I’m unable to report this defect because it’s been long since I had replaced XamCarouselListBox with Microsoft ListBox (that provided correct behavior) and no longer have a sample of code.
I did see control templates that located in the same folder as on your machine. I was confused by the “Express” suffix that suggested that those templates were applicable to the Express edition of your NetAdvantage for WPF suite.
Thank you for your reply.
Hello,
If you would, please report the ItemContainerGenerator issue as a defect at the following site:http://ko.infragistics.com/support/submitrequest.aspx
Concerning source code...
Instead of providing source code, we provide control templates which allow the controls to be implemented in any presentation you wish. Control templates, styles, and resources used to theme, customize, and re-purpose NetAdvantage controls are available in the Program Files\Infragistics\ folder created when installed.
On my machine, the path to the styles and templates can be found at:C:\Program Files\Infragistics\NetAdvantage for WPF 2008 Vol. 1\DefaultStyles\
WPF programming is highly flexible. As a result, most customizations can be accomplished via styling and re-purposing WPF controls. I have found that the more I understand WPF, the more I understand NetAdvantage for WPF.
If you have found bugs in any of our controls, please contact our developer support website. Our support team is equipped to offer work-arounds and to communicate to our engineering staff the defect. We always make it our aim to fix bugs ASAP and to release hot fix releases to get those fixes into user's hands sooner than later.
Thank you!