All, I am running the AppStylist for the first time. I havn't been able to find any code samples to use in Visual Studio (2005).
I want to use (atleast at first) one of the default style libraries (such as "FlatNature.isl" or "TheBlues.isl").
I can add a appStylistRuntime, but can't seem to load a library.
What is the fastest, simplest way to load a library?
Also, where can I get technical (i.e. C#) documentation on AppStylist
dap
It seems to work if I use the following code
StyleManager.Load(@"C:\style_libs\black.isl");
How do I set it up to have it use a style that is in a "styles" directory within the project directory?
I will verify and let you know.
Thanks for the suggestions.
Do the controls on the form have the UseAppStyling property set to True (the default)? Are you certain that the styleset you're using targets those controls (i.e. you can see the controls properly styled when loading the style from within AppStylist)? It's difficult to say what's going on here without seeing your code, so it may be best to submit this issue to the support group so that they can look into it:
Get Help
-Matt
My problem is in the loading of the style library.
when I use the following. It does not does not appear to work.
Infragistics.Win.AppStyling.StyleManager.Load("myFile.isl");
I have added the appStylistRunTime object
I have added the following lines of code
using Infragistics.Win;
using Infragistics.Win.AppStyling;
using Infragistics.Win.AppStyling.Runtime;
It does not seem to use the default style
I'm not sure exactly what you're trying to do with AppStylist. There is no programmatic interface to use within AppStylist itself, though you can use code in your application to load style libraries, or resolve appearances for a given role. To load a style library in your application, you can use:
Could you be a little more specific with what you're trying to accomplish?