This is a migrated thread and some comments may be shown as answers.
RadToolBar Theme not applying to derived child
4 Answers 54 Views
This is a migrated thread and some comments may be shown as answers.
GT
Top achievements
Rank 1
GT asked on 17 Nov 2009, 01:32 AM
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();  
 
    InitializeComponent();  

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

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

 

 


 

4 Answers, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 18 Nov 2009, 03:15 AM
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.

Greetings,
Ivan
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.
0
GT
Top achievements
Rank 1
answered on 18 Nov 2009, 11:49 PM
Thanks Ivan, that did the trick.
0
Michael P.
Top achievements
Rank 1
answered on 31 Jul 2010, 10:14 PM
0
Kiril Stanoev
Telerik team
answered on 03 Aug 2010, 04:38 PM
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
Asked by
GT
Top achievements
Rank 1
Answers by
Ivan
Telerik team
GT
Top achievements
Rank 1
Michael P.
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Share this question
or