When loading the AppStylist files at runtime and you are using multiple styles, Is there anything that needs to be done before or after you make the Infragistics.Win.AppStyling.StyleManager.Load("Styles\Aero.isl") call to change to the next styles file? Is it correct to say that the StyleManger can have multiple styles loaded at the same time? How do all the controls make the change from one style to the next or is this done automatically with the Load call?
Steve
I don't know why that's happening. You should Submit an incident to Infragistics Developer Support
I have problem using the StyleLibraryName property for a UltratTab.
1. I load a new style. ( StyleManager.Load("..\\ModifiedTabHeader.isl", false, "ModifiedTabHeader");
2. Then a set the new style for a single tab. ( tab.Apperance.StyleLibraryName = "ModifiedTabHeader"; )
Now strange things happens...
I debugg, it takes about 1 second to execute the code in (2).. then almost all properties in tab.Apperance "throws exceptions" and I get the error that "null exception , parameter name: key".
What am I doing wrong, has the *.isl file maybe missing data?
Hi Steve,
If you just call the overload of the method you have shown above, then loading a style will overwrite and replace any previous style libary that you loaded. If you want to load multiple styles at once, then each style library needs to have a name, so you would call a different overload of the Load method that takes a filename and a style library name. Calling Load without specifying a name essentially load the default style library.