This is a migrated thread and some comments may be shown as answers.

RadTabItem Theme

7 Answers 151 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Brandmuscle
Top achievements
Rank 1
Brandmuscle asked on 23 Apr 2009, 03:28 PM
I am creating tabs on the fly and need to be able to apply a theme to the actual RadTabItem.

I have tried the following with no success:
1) tab1.SetValue(Telerik.Windows.Controls.StyleManager.ThemeProperty, new VistaTheme());
2) Telerik.Windows.Controls.StyleManager.SetTheme(tab1, new VistaTheme());

tab1 is the tab I created:
RadTabItem tab1 = new RadTabItem();

Also, I cannot apply the theme to an existing tab (within the actual XAML) dynamically either.  If a RadTabItem exists with name "tab2" on the xaml form and I try and go and programatically apply a theme somewhere in the code it does not apply at all...

Any help with this would be great.  I really need to be able to apply themes on the fly to dynamically created telerik objects.

Thanks

 

7 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 24 Apr 2009, 12:52 PM
Hi Dan,

Thank you for your feedback, it is much appreciated. It turned out you hit a bug in RadTabControl. We investigated the problem and it is scheduled for fixing.

I updated your Telerik points.

Kind regards,
Dimitrina
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.
0
Brandmuscle
Top achievements
Rank 1
answered on 24 Apr 2009, 02:02 PM
When will the next release be (estimated time?) with the fixed packaged up?

Also, I am not sure if yall are investigating this but it would be a HUUUUUGE help if you could somehow set the theme of the RadTabControl and have all the children (RadTabItems) take on the parent theme by default unless specifically told to do otherwise.  If there is a way to do this currently that would be great if you could show/tell me how.

Thanks again
0
Miroslav
Telerik team
answered on 26 Apr 2009, 12:46 PM
Hello Dan,

The fix will be available for the next SP or Internal Build, unfortunately currently there is no workaround.

The fix will include both inheriting the theme and changing it during runtime.

All the best,
Miroslav
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.
0
gerald
Top achievements
Rank 1
answered on 06 Aug 2009, 10:49 PM
Has this been FIX? I need to be able to create tabs dynamicly and apply theme.

Gerald
0
gerald
Top achievements
Rank 1
answered on 10 Aug 2009, 05:17 PM
If you can not apply the theme dynamicly by:

1) tab1.SetValue(Telerik.Windows.Controls.StyleManager.ThemeProperty, new VistaTheme());
2) Telerik.Windows.Controls.StyleManager.SetTheme(tab1, new VistaTheme());

Can I get the XAML resources for the Office Blue 2007 Theme?

Thanks,

Gerald
0
testawery
Top achievements
Rank 1
answered on 11 Aug 2009, 07:21 AM

I've run into this issue also.  When do you expect to ship a fix?

Thanks
0
Bobi
Telerik team
answered on 11 Aug 2009, 07:37 AM
Hello testawery,

This issue is already fixed and the change will be reflected in our next SP1 release which is scheduled for this week.
So in SP1 you will be able to change the theme in this way:
 tab1.SetValue(Telerik.Windows.Controls.StyleManager.ThemeProperty, new VistaTheme());
or
Telerik.Windows.Controls.StyleManager.SetTheme(tab1, new VistaTheme());


Greetings,
Boryana
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.
Tags
TabControl
Asked by
Brandmuscle
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Brandmuscle
Top achievements
Rank 1
Miroslav
Telerik team
gerald
Top achievements
Rank 1
testawery
Top achievements
Rank 1
Bobi
Telerik team
Share this question
or