Theme not being applied at runtime...

2 posts, 0 answers
  1. George Peters
    George Peters avatar
    2 posts
    Member since:
    May 2010

    Posted 13 Sep 2010 Link to this post

    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();

    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.
  2. George Peters
    George Peters avatar
    2 posts
    Member since:
    May 2010

    Posted 14 Sep 2010 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top