RadTabItem Theme

8 posts, 0 answers
  1. Brandmuscle
    Brandmuscle avatar
    19 posts
    Member since:
    Nov 2008

    Posted 23 Apr 2009 Link to this post

    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

     

  2. Dimitrina
    Admin
    Dimitrina avatar
    442 posts

    Posted 24 Apr 2009 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Brandmuscle
    Brandmuscle avatar
    19 posts
    Member since:
    Nov 2008

    Posted 24 Apr 2009 Link to this post

    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
  5. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 26 Apr 2009 Link to this post

    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.
  6. gerald
    gerald avatar
    5 posts
    Member since:
    Jul 2008

    Posted 06 Aug 2009 Link to this post

    Has this been FIX? I need to be able to create tabs dynamicly and apply theme.

    Gerald
  7. gerald
    gerald avatar
    5 posts
    Member since:
    Jul 2008

    Posted 10 Aug 2009 Link to this post

    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
  8. testawery
    testawery avatar
    1 posts
    Member since:
    May 2007

    Posted 11 Aug 2009 Link to this post


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

    Thanks
  9. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 11 Aug 2009 Link to this post

    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.
Back to Top
UI for WPF is Visual Studio 2017 Ready