Hello,
I am trying to get http://es.infragistics.com/samples/windows-forms/dock-manager/window-styles this code to work.
However
Infragistics.StyleLibrary.GetStyleLibrary style = new Infragistics.StyleLibrary.GetStyleLibrary();
this line of code is giving me errors and even after adding every Infragistics dll from 15.1(.20151.2132) it still gives me errors.
Error CS0234 The type or namespace name 'StyleLibrary' does not exist in the namespace 'Infragistics' (are you missing an assembly reference?) comes up twice.
Any suggestions on how to get the example code to work?
Hello Jasper,
I would recommend installing the samples browser through the Platform installer link I provided in my previous reply. Simply uncheck everything except for the Windows Forms samples. The sample should run from the installation folder as long as you have the product installed. There are other files in the solution that would be required to build it, aside from what is showing in the link you provided. That is why you get the exception. Installing the samples and running them would be the easiest solution.
If you'd like, I can attach just that one sample as a zip file, although you'd still have to comment out the style library, as that's a file shared throughout our samples. If you'd like to do this rather than install the samples, could you please let me know the version (ex. 15.2) and whether you are using C# or VB?
Elizabeth AlbertLocalization Engineer
Hello Elizabeth,
I commented out those lines and then getting MissingManifestResourceException on the treeServerExplorer (and commenting that out on the listviewToolBox1)
Running the custom tool on Resources.resx doesn't change a thing. (Which is suggested as solution on these type of errors...)
This GetStyleLibrary class is specific to our samples browser and is not included in the product.
If you'd like to get this code running, I would recommend installing our Windows Forms samples browser. You can get it either from My Keys and Downloads, or from the Platform Installer. You can even open and run the sample from the installation folder.
Alternatively, since all it's doing is loading the "IG.isl" file, you can either load that file yourself, or simply comment out the lines that use it. You can find the IG.isl file in a path similar to this, depending on your OS and chosen installation path.C:\Users\Public\Documents\Infragistics\2015.2\Windows Forms\AppStylist for Windows Forms\Styles This API page might be helpful.http://help.infragistics.com/Help/Doc/WinForms/2015.2/CLR4.0/html/Infragistics4.Win.v15.2~Infragistics.Win.AppStyling.StyleManager~Load(String).html