Hi
There are lots of good samples that Infragistics installed on my pc.
I can see & debug them in "Infragistics.Samples.WPF", but I want to try some as is in my wpf project.
But to do that, what do I choose when I click Add, New Item?
The XAML says "<igFramework:SampleContainer ..." in the upper left corner. What is that?
Are these Windows or Usercontrols or something else? The only Infragistics projecy types I see are for Reporting.
Thanks, Howard
Hello Howard,
Thank you for your post. I have been looking into it and I can say that the SampleContainer class inherits Page class. You can find its definition here by default:
C:\Users\Public\Documents\Infragistics\NetAdvantage 2013.1\WPF\Samples\CLR4.0\Infragistics.Samples.Framework\Controls\ SampleContainer.wpf.cs file
Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Stefan
Thank you for your reply. But I don't know what I'm suppoed to do with that code file.
I can use the samples and modify them, but only in the sample solution.
I am unable to create a page like a sample page into my own project. This would make the samples more useful. Do I create a Window or UserControl? I'm not sure how this is done.
And how does the samples access the sample data? Where is it?
Regards, Howard
As Stefan said, the SampleContainer is a custom control that inherits from a Page class. It main purpose it to provide some basic navigation functionality for samples of all Infragistics controls. You don't need this functionality to run samples in your project.In order to try sample(s) in your project, you should add UserControl as new item and copy sample code from the content of a sample. That's is really all you need to do. Please let me known if you have more questions about this.Thanks,Martin
Along with the NetAdvantage the installer installs the solution of the Samples Browser. By default it is placed here:
C:\Users\Public\Documents\Infragistics\NetAdvantage 2013.1\WPF\Samples\CLR4.0
There you can find all the files that are used in the Samples Browser. You can also load the solution in Visual Studio and debug it. If you want to use the sample data, first you should see the namespace of the data in order to be able to find its location easily.
Hope this helps you.