This is a migrated thread and some comments may be shown as answers.

Theme not being applied at runtime...

1 Answer 152 Views
Window
This is a migrated thread and some comments may be shown as answers.
George Peters
Top achievements
Rank 1
George Peters asked on 13 Sep 2010, 05:57 PM
I know this could be a simple oversight on my part since I'm transitioning from WinForms to WPF.   I've created a simple WPF application using the RadControls for WPF40 2010 Q2 release. 

I have created my radmenu, figured out how to get my icons to appear on the main menu along with my text, etc.  When I follow the directions for an application wide theme, I added the following line right before my InitializeComponent(); of my main window:

StyleManager.ApplicationTheme = new SummerTheme();
InitializeComponent();

At runtime, nothing changed.  No theme was applied.  So I manually applied the Theme to my RadMenu in the XAML:

<telerik:RadMenu HorizontalAlignment="Stretch" Name="mnuMainMenu" VerticalAlignment="Top" telerikControls:StyleManager.Theme="Summer">

In the Visual Studio 2010 Designer, I can see the summer theme being applied but once again at Runtime, the application has the basic look/feel.  The Themes are not being applied at runtime.  I've cleaned the build and rebuilt with no changes.  I've restarted Visual Studio to make sure that the environment is reparsing and reloading the modules (based on past experience with previous Studio environments getting out of whack).

Any suggestions as to what I might be overlooking would be greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
George Peters
Top achievements
Rank 1
answered on 14 Sep 2010, 03:31 PM
Nevermind.  I'm not sure what caused it to finally appear but after a day and a half of developing, debugging, etc....the theme "kicked" in.  I apologize for the false post.

Thanks,
George
Tags
Window
Asked by
George Peters
Top achievements
Rank 1
Answers by
George Peters
Top achievements
Rank 1
Share this question
or