Hi, is it possible to define inside an .ISL style file a custom palette and subsequently retrieve it programmatically, just after the style is applied?
I also tried to create a set of new resources using AppStylist but I don’t found any way to retrieve them at runtime.
Thanks in advance.
Yes, thank you.
P.S. sorry for the delay.
Hello O.R.S. S.r.l.,
Were you able to resolve your isse by using what Mike has suggested?
It is possible to retrieve styling information and resources at run-time. It has to be, since the controls themselves have to do it. :)
You can even change the styling at run-time.
But it's not a very common thing to do and I don't think it's documented anywhere.
I posted some sample code here which shows how to set the Font on the Base UIRole, so that might point you in the right direction.
Change font at runtime - Infragistics Forums
The sample shows you how to get the DefaultStyleSet of the currently-loaded StyleLibrary. Once you have the StyleSet, you can access the Resources collection.