OT: Infragistics & AppStyling

OT: Infragistics & AppStyling

Old forum URL: forums.lhotka.net/forums/t/4750.aspx


ajj3085 posted on Friday, April 25, 2008

Hi,

I want to force all grids in my application to use a configurable color scheme.  I'm trying to use the Office 2k3 presets to brand my application and avoid confusion for users that will be in the application.

Basically one company will have the blue theme, another will use the green, and a third will use the silver.

Looking at the xml preset files, I only need to set four colors; HeaderAppearence backgroundcolor and backgroundcolor2 and RowSelector backgroundcolor and backgroundcolor2.  I want to read these values in and apply them globally to all grids.  I tried looking at appstyling, but since it's targeted to designers i'm totally lost.

If anyone can help i'd greatly appreciate it!

Thanks!
Andy

Joffies replied on Friday, April 25, 2008

If I understand you correctly why dont you just use the predefined style libraries that come with App Stylist and then load these dynamically when your application starts?

For Windows Apps...

Comp A

Infragistics.Win.AppStyling.StyleManager.Load(Application.StartupPath + "\Office2007Blue.isl")

Comp B

Infragistics.Win.AppStyling.StyleManager.Load(Application.StartupPath + "\Office2007Black.isl")

ajj3085 replied on Friday, April 25, 2008

Well, those are the 2007 colors, and don't look as nice since my application has the look and feel of 2003.  Also, those styles change everything... menus, mouse cursors, etc.  It ends up actually not looking very good. 

I really just want to apply the 2k3 colors to grids, tabs, and the explorer bar.  Otherwise, I'm not looking to styling anything else.

Copyright (c) Marimer LLC