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
754
Howto retrieve rgb color values from style (ISL or builtin)
posted

I have to report the color scheme which we use in our app to a sister company which willd esign something different (not with infragistics). They asked me about which colors are used for certain elements.

Now, I want to somehow find this information in the ISL file or in the AppSylist or even during runitme of the App, but I cannot figure out how. Furthermore, e.g. the UltraGroupBox seems to have a gradient filling when switched to "Office 2007" e.g., but in the AppStylist the same style seems to have a solid filling.

All attributes in Appereance show "Default", and also during runtime I cannot access the used colors and fill styles. Any idea?

regards Florian

 

Parents
  • 469350
    Suggested Answer
    Offline posted

    I answered a very similar question this morning here: Accessing a colour in a style resource - Infragistics Community

    If you want to get appearances from a control on a form, then that actually might be easier for you. Basically any WinForms control that has appearances will typically have a method on the control which allows you to resolve that appearance. For example, in the WinGrid, there is a ResolveCellAppearance method which will resolve all of the appearance and AppStyling data and return to an AppearanceData with the actual on-screen colors and appearance properties on a cell.

Reply Children
No Data