I'm using a ToolStrip ( no I don't want to use the Infragistics control for this particular case) and I'd like to set its background to the color of a themed infragistics control. Is it possible to retrieve the different colors of a loaded theme ?
Hi David,
ResolveAppearance is a method that exists on many different objects and sub-objects. So you would need to find the one you want. Then you declare an AppearanceData and an AppearancePropFlags and pass them into the method. The AppearanceData will be returned with the appearance properties you requested and the AppearancePropFlags will be modified so that any resolved properties are stripped out of the flagged enum value.
To get information directly from the Application style, I think you have to declate an ApplicationStyleLibrary object and use a method on this object to load the current style from the Style Manager. Then you can examine the library and get any style information you need. But it's a large and complex object and I can't really document the entire thing here.