Themes - Examples & Documentation

19 posts, 0 answers
  1. John
    John avatar
    6 posts
    Member since:
    Nov 2008

    Posted 06 Nov 2008 Link to this post

    I've just seen the example of themes at http://demos.telerik.com/silverlight/themes/ but haven't found any documentation or examples on the site, Can you point me in the right direction. I'm also assuming that the Themes apply to standard SilverLight controls such as Button and GridSplitter as well as the Telerik control.

    Thanks in advance
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 06 Nov 2008 Link to this post

    Hi John,

    We will be blogging about this example very shortly, most probably tomorrow. Unfortunately the documentation for this feature was not updated in time and is not currently online. Please, stay tuned for more info and excuse us for the inconvenience.

    Sincerely yours,
    Valeri Hristov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
  4. Jaime
    Jaime avatar
    32 posts
    Member since:
    Sep 2008

    Posted 13 Nov 2008 Link to this post

    Hi, where is this example, I can't find it anywere.

    Thanx in advance.
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 17 Nov 2008 Link to this post

    Hello Jaime,

    The themes example is here:
    http://demos.telerik.com/silverlight/themes/ 

    Please let us know if you have any questions about the Themes support.

    Sincerely yours,
    Valentin.Stoychev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Richard
    Richard avatar
    26 posts
    Member since:
    Oct 2008

    Posted 17 Nov 2008 Link to this post

    Hello, I am subscribed to this post and see the themes but I don't see any example code on how to implement the themes.  What code do I need and do I have to add references or any other code to make the themes work?
  7. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 17 Nov 2008 Link to this post

    Hello Richard,

    you need to make two things to have your application to use a theme different than the default one.
    1. Reference the dll that is including the other theme - For example : Telerik.Windows.Themes.Default_Red.dll
    2. Set this code in the App_Startup event handler:
            private void Application_Startup(object sender, StartupEventArgs e)  
            {  
     
                // Load the selected theme  
                Telerik.Windows.Controls.Theme.ApplicationTheme = "Telerik.Windows.Themes.Default_Red";  
     
                this.RootVisual = new Page();  
            } 

    Sorry for the missing blogs/kb articles about the new theming features. We will produce them later this week - after we release the RadGridView CTP.

    Thanks for your patience! Let us know if you have any other questions regarding themes.

    Kind regards,
    Valentin.Stoychev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  8. John
    John avatar
    6 posts
    Member since:
    Nov 2008

    Posted 17 Nov 2008 Link to this post

    Valentin

     

    The sample code changes the Theme applied to the Telerik controls but how can you apply the theme to standard objects such as Buttons?

     

    Thanks

     

    John

  9. Richard
    Richard avatar
    26 posts
    Member since:
    Oct 2008

    Posted 17 Nov 2008 Link to this post

    Valentin,

    I am not having too much luck applying a theme.  Here is what I have done.

    I referenced the dll for  Telerik.Windows.Themes.OfficeBlack in my Silverlight project and I see it there.

     

    Then I added the line into the Application_Startup in the App.xaml.cs file as shown below:

     

    private void Application_Startup(object sender, StartupEventArgs e)

     

    {

    Telerik.Windows.Controls.

    Theme.ApplicationTheme = "Telerik.Windows.Themes.OfficeBlack";

     

     

    this.RootVisual = new FileUpload();

     

    }

    But the theme does not apply.  I am working with the radUpload control.  There seems to be something missing somewhere.  Do we have to reference the theme somehow in the control itself.

    Rich

  10. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 17 Nov 2008 Link to this post

    Hello Richard,

    "OfficeBlack" is available only for the Gauge controls right now. Try with Vista or any of the Default_* themes.

    We are working on the OfficeBlack theme. It will be available after our Service Pack release for all controls.

    Let us know how it goes.

    Regards,
    Valentin.Stoychev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  11. Richard
    Richard avatar
    26 posts
    Member since:
    Oct 2008

    Posted 17 Nov 2008 Link to this post

    Valentin,

    I tried the Vista theme first and it did not appear so I still have the problem.  Is there any way to post the actual code used on the sample site - at least for the upload control?
  12. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 18 Nov 2008 Link to this post

    Hi All,

    I'm posting a Silverlight solution that contains two projects - one for a Custom theme and one for a Silverlight application that is using this custom theme.

    If you need to apply a custom control template for any Telerik Silverlight control - just modify the resource files that are locate in Themes folder in the "MyCustomTheme" project.

    Please note that we have some difficulties making the controls editable in Expression Blend. We are working on providing a solution for that. Once we have a breakthrough - will let you know.

    Please let us know if you have any problems editing the themes.

    All the best,
    Valentin.Stoychev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  13. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 19 Nov 2008 Link to this post

    Hi There,

    please check this blog post for more info:
    http://blogs.telerik.com/ValentinStoychev/Posts/08-11-19/Tweaking_the_Theme_colors_for_Telerik_Silverlight_Controls.aspx?ReturnURL=%2fBlogs.aspx

    Your feedback is much appreciated!

    Sincerely yours,
    Valentin.Stoychev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  14. Antonis
    Antonis avatar
    33 posts
    Member since:
    Aug 2008

    Posted 19 Nov 2008 Link to this post

    Do Themes work for the CTP version of GridView?!

    Thanks
  15. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 19 Nov 2008 Link to this post

    Hello Antonis,

    Nope - the GridView is still not using the shared resources, but with the Q1 release it will.

    Regards,
    Valentin.Stoychev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  16. Jamest
    Jamest avatar
    41 posts
    Member since:
    Apr 2007

    Posted 13 Mar 2009 Link to this post

    Is there any way we can get an updated Custom Theme builder including all the controls included in Q1?
  17. William
    William avatar
    3 posts
    Member since:
    Mar 2009

    Posted 15 Mar 2009 Link to this post

    This technique no longer seems to be working in the Q1 2009 release?

    When I call Telerik.Windows.Controls.Theme.ApplicationTheme = "Telerik.Windows.Themes.Vista";

    I get an error stating that
    Telerik.Windows.Controls.Theme does not contain a definition for 'ApplicationTheme'

    Has that changed?  I'm referencing version 2009.1.312.1020 of Telerik.Windows.Controls.dll


  18. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 16 Mar 2009 Link to this post

    Hello William,

    You can read how to change application theme from here:
    http://www.telerik.com/community/forums/silverlight/general-discussions/apply-themes-on-radcontrols-q1-2009.aspx#766512

    Let us know if you need more information.

    Greetings,
    Hristo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  19. Anthony Doerr
    Anthony Doerr avatar
    2 posts
    Member since:
    May 2009

    Posted 10 Jul 2009 Link to this post

    Hello,
    I'm running into the same problem William had.  However, I'm not able to get to the link in the previous post.  Is there a new link?
    Thanks!
  20. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 15 Jul 2009 Link to this post

    Hello Anthony Doerr,

    Yes, this link is outdated. We changed the Theming mechanism. Take a look at this link, it will solve your problems.

    Let me know if you need more information.

    Sincerely yours,
    Boyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
DevCraft banner