Hi,
My application uses UltraPanel in different forms. It also has MyStyle.isl which sets UltraPanel settings, like backcolor.
My problem is that I want two panels in my app to have different color set
Is it possible to have two different looks for a UltraPanel in one .isl file and if it is, how to apply it in my app?
Thanks,
Maria
Hi Maria,
Yes. What I would do is create two different StyleSets within your isl file. Then you set the StyleSetName property on each UltraPanel in the application to use one or the other.
Actually, you don't have to set the StyleSetName on every UltraPanel. You can leave one using the default and only set it on the ones that you want to be different.
Thank you for the answer,
it was very helpful.
Hi
How can I add the UltraPanel BackColor proprty in component style (ISL)
this is not working for the Infragistics controls;
<componentStyle name="UltraPanel">
<properties>
<property name="BackColor" colorCategory="{Default}">Black</property>
</properties>
</componentStyle>
?
It looks like you are trying to create the XML for the isl file yourself. I don't recommend doing this. It's far easier and more reliable to use AppStylist to generate your isl file.
You are using a ComponentStyle for one thing. It looks like you probably copied this from somewhere, but it doesn't make much sense for what you are trying to do.
For one thing, you are trying to set the BackColor property on the ComponentStyle. This is the way appStylist sets the BackColor on an Inbox control. But this will not work for an Infragistics control. Infragistics controls use RoleStyles, instead and they don't set properties directly on the controls. They work in a totally different way.
Also, the reference here to a colorCategory indicates that this isl file is a template, not a real isl.
Anyway, if you really must create the xml yourself (which, as I said, I don't recommend), then you should at least use AppStylist as a guide. Just now, I went into AppStylist, created a new isl, went to the Panels tab and set the backcolor on UltraPanel to black. The xml looks like this:
<style role="UltraPanel"> <states> <state name="Normal" backColor="Black" backGradientStyle="None" backHatchStyle="None" /> </states> </style>
HI
thanks. got it