RadToolBar Theme not applying to derived child

5 posts, 0 answers
  1. GT
    GT avatar
    13 posts
    Member since:
    Oct 2009

    Posted 16 Nov 2009 Link to this post

    I'm having a small issue where the SummerTheme is not being applied to custom child objects (derived from ToggleButton), and instead they appear as grey 3D buttons with borders. All other child Button/ToggleButton objects style fine. Setting the StyleManager.Theme="Summer" on the custom object doesn't seem to do anything. I'm using the Q2 Trial Assemblies.


    Any help would be greatly appreciated -

    I'm specifying the SummerTheme as such:
    public App()  
        this.Startup += this.Application_Startup;  
        this.Exit += this.Application_Exit;  
        this.UnhandledException += this.Application_UnhandledException;  
        StyleManager.ApplicationTheme = new SummerTheme();  

    My custom Button object as so:
    public class MyToggleButton : ToggleButton  

    And my XAML as so:
       <ToolbarSpike:MyToggleButton Content="Custom Button"/>  
       <Button Content="Button1"/>  
       <Button Content="Button2"/>  
       <ToggleButton Content="Button3"/>  




  2. Ivan
    Ivan avatar
    519 posts

    Posted 17 Nov 2009 Link to this post

    Hello Greg Taylor,

    Thank you for contacting us.

    Please preview the Get a Custom Button stylized in the RadToolBar article. There is a working example about stylizing a custom button.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. GT
    GT avatar
    13 posts
    Member since:
    Oct 2009

    Posted 18 Nov 2009 Link to this post

    Thanks Ivan, that did the trick.
  4. Michael P.
    Michael P. avatar
    5 posts
    Member since:
    Oct 2009

    Posted 31 Jul 2010 Link to this post

  5. Kiril Stanoev
    Kiril Stanoev avatar
    1512 posts

    Posted 03 Aug 2010 Link to this post

    Hi Michael,

    Sorry for the inconvenience. Here is the correct link. I've also taken the liberty to edit Ivan and yours links so they point to the right direction.

    All the best,
    Kiril Stanoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top