Custom theme in local and online version

1 posts, 0 answers
  1. kwitee
    kwitee avatar
    3 posts
    Member since:
    Feb 2012

    Posted 11 Sep 2012 Link to this post

    Hi, on my Sliverlight app I am using custom telerik theme: 

    // theme declaration
    [ThemeLocation(ThemeLocation.BuiltIn)]
    public class MyTheme : Theme
    {
      public MyTheme()
      {
        base.Source = new Uri("Uri", UriKind.RelativeOrAbsolute);
      }
    }
     
    // load theme
    Telerik.Windows.Controls.StyleManager.ApplicationTheme = new MyTheme();

    On the local computer and LAN it works fine. The problem is when the application is viewed online. The theme is not loaded right away and sometimes it needs a couple of refreshes to kick in. 
    How can I solve this? 

    Regards, 
    -- kwitee
Back to Top