Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
240
Multiple ISL files
posted

Hi all, 

1) Can we use 2 ISL files in our application ?

2) I need to set a different bg color for panels, its like in our application mostly in all the forms we have one panel which has user input controls and other panel which has controls to show some data.

I would like to have a different bg colors for both of them. Is its possible ??

 

Any help appreciated... 

Best regards

 

  • 469350
    Verified Answer
    Offline posted

    Hi,

    coldice said:
    Can we use 2 ISL files in our application ?

    Yes, you can. But you don't need 2 ISL files to achieve what you described here. All you have to do is use a single ISL file that has more than one StyleSet. Then you set the StyleSetName on some of the controls in your application. The StyleSet you specify will be applied to only those controls whose StyleSetName property matches up.The other controls will use the Default StyleSet.

    If you want to use multiple isl files, then it's basically the same idea, except that you use the StyleLibraryName property instead of StyleSetName. StyleLibraryName is not the file name, it's any arbitrary string you want. To apply the style library to those control, you call StyleManager.Load and pass in the name (the arbitrary string) into the load method, in addition to the file name.