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 ?
Many controls have a ResolveAppearance method that you could use to resolve which Appearance properties that you need so that you could set the ToolStrip's color accordingly.
-Matt
Depending on what control and what kind of theme you are referring to, you might also be able to get the color from an exposed color table, like the XPThemes colors.
I tried the ResolveAppearance method as sugested by Mr Snyder and it worked very well. However, it would be better if i could just get a color from a theme without the need to create a specific control to get the color from.
I'm not sure that i fully understand what you are refering to with color tables.I loaded the theme from an .isl file created with AppStylist (Created from the templates that come with Infragistics controls). Is it possible to have the color table informations with that kind of theme ?
Thanks
Okay, I was referring to the XPThemes colors. There's no color table for Application Styles.
It's possible to get the colors directly from the StyleManager, but it's quite complicated and it will be much easier to use a control's ResolveAppearance.
Hi Mike,
I have tried contacting the tech support with this issue, but it seems that they and I are speaking different languages. I need almost this same exact ability...
I need to be able to extract from a grid different properites of different Appearances so taht I can apply the same values to an HTML exported version of the data (since you all do not have HTML export yet)...so for example, when exporting the grid to HTML, I want to set the Column Headers, Row, and Alternating Row BackColors to match what the user had in the grid. Can you please tell me how to use the ResolveAppearance method or the more difficut method extracting it from the style manager if the ResolveAppearance would not work?
Thanks,
David