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
Mike,
found myself something here: http://forums.infragistics.com/forums/p/24233/88854.aspx#88854 - with Reflection, I am a bit further now, getting the gradientstyle already. So lets see. thanks for the moment!
florian
thanks for the answer, this is understood. But the UltraGroupBox I have to query seems to not have a ResolveAppearance method, also hasAppearance is set to false. Also ContentAreaAppearance seems to be empty/default.
But ViewStyle is set to Office2007 on the GroupBox object, and it definitely influences the background of the box. What I am missing here?
thanks Florian
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.