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
2745
App Styling methods
posted

Hello!

I have just started to set up an new windows application project with an mdi form as "base". The user should be able to change between different styles at runtime, via a UltraToolbarManager control. I also want to be able to save the style that the user selects so that I can load upon next startup. Are there any direst methods for this, or do you simple create your own xml etc?

 

I am interested in using the Office2007 themes (blue, black, silver). When I started to browse for best practise, I ended up with more then one solution.

 

One solution seems to be to set the Style of the UltraToolbarManager that is placed on the MDI-form. I can set Office2007 as style, but I don't know how to set it to the Black theme directly. Does anyone know if that is possible, and int hat case how? There are two properties availble (StyleLibraryName, StyleSetName) but I don't know how they work.

 

As far as I understand, anotheroption is to use the .isl files that comes with the package. If I use something like:

Infragistics.Win.AppStyling.StyleManager.Load(StylesFolder & "\Office2007Black.isl")

,  I will be able to set the style.

 

Another method that I have seen in Infragistics examples are:

Office2007ColorTable.ColorScheme = DirectCast(MyObject, Office2007ColorScheme)

 

Can someone point me in the right direction, and explain the different approaches and which will be the best for my situation?

 

Thanks!

/Henrik

 

Parents Reply Children