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
515
Infragistics styles and transparency
posted

We have the following problem. We give to our users the possibility to choose a theme. Some of this themes have the label background as transparent and some others not. So if a user choose as an example the chameleon theme, when a form have a label inside a groupbox we are getting not good looking form. We don't want to change infragistics styles with appstylist application to have easier upgrade path. Is there any other possibility to use the infragistics styles but override somehow the default style appearance?

Thanks in advance

Mike Evans

 

PS the above "problem" its not only for Label but also other controls (checkbox etc)

Parents
  • 37774
    Suggested Answer
    posted

    Mike,

    If it's the styles that are providing the backgrounds to the controls, then you basically have two options

    1) Change the styles themselves to be transparent (which you said isn't prefereable for you)

    2) Change the ComponentRole of the styles to be ControlThenApplication (if they aren't already) and then set the Appearance.BackColor to Transparent

    Both of these approaches will likely involve modifying the styles, unfortunately.  The downside to the second approach is that some of the backgrounds might be applied to the Image/ImageBackground instead of BackColor, so you'd have to set the ImageAlpha/ImageBackgroundAlpha on the controls as well.  I'd say that the first options is still your best bet.

    On the bright side, if you're worried about an upgrade path, the styles aren't bound to any specific version, so you should be ok using these styles when you upgrade.

    -Matt

Reply Children