When I am loading the isl file at runtime as shown in the samples, the style is loaded on whole application. Is there a way to apply it only on one form or a few forms.
Hi Mike,
If I want to set the stlylesetname of all the infragistics controls on a form to a specific name. Do we have a base class which we should use to set the stylesetname?
Thanks,Puneet
Hi,
If you need any additional assistance don’t hesitate to ask.
Regards
Thanks Mike, I would also like to mention a workaround which we used.
If we load all the style libraries with some alias name then the style libraries are not loaded to any control where the property StyleLibraryName is not set .
So we are now only assigning the property on the forms where we want it to load the library.
Hi Bharat,
There's no way to limit the AppStyling to a single form, but you can limit it to the controls themselves.
What you do is... when you call StyleManager.Load, you use the overload that takes in a name. You can specify any arbitrary string for the name and what that means is the the style library will only apply to controls whose StyleLibraryName property it set to the same string. So then you have to go to your form and set StyleLibraryName to the same string for any controls that you want to pick up the styling.
Hi Georgi,
In my application some forms are made from IG controls and some are IG controls + windows controls(mixed). So I want to apply AppStyle with some specific forms (forms that only made from IG controls).
Thanks
Bharat