StrataFrame Forum

Adding Custom Application Theme

http://forum.strataframe.net/Topic22715.aspx

By Bill Cunnien - 4/14/2009

I seem to be missing something in the documentation...how to connect a newly designed theme to my application. I can create the theme...save the theme...generate the class...set the solution preference to the new theme...but, when I run the application, the new theme is not used. I added the following to the program.cs file:



ApplicationTheme.Theme = ApplicationThemeName.Custom;



however, that does not seem to matter either. I closed VS, then reopened...still no change.



Interesting note...if I open the Solution Preferences window, the first time, it uses the standard theme; however, the next and subsequent times that I open it, it shows the applied theme in that window.



So, how do I get my custom theme applied to the application?



Thanks,

Bill
By Bill Cunnien - 4/14/2009

Figures...two minutes after I post, I found the answer. In the program.cs file, I added:



ApplicationTheme.LoadCustomTheme(typeof(MyTheme));



That did it. Thanks StrataFrame team...that theme editor is a dream!
By Trent L. Taylor - 4/15/2009

Yup, that would do it.  Thanks, I am glad it is working well for you! Smile