Adding Custom Application Theme


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Yup, that would do it.  Thanks, I am glad it is working well for you! Smile
Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
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!
Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
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
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search