RadRibbonGallery apper error

2 posts, 0 answers
  1. Ke
    Ke  avatar
    12 posts
    Member since:
    Sep 2011

    Posted 15 Apr 2012 Link to this post

    When I change a radribbonview control's theme ,RadRibbonGallery lost its scroll bar and button. Any suggestions?
    first capture image is before use theme, second is after use theme.

             Theme ConvertToTheme(string themeName)
                if (string.IsNullOrWhiteSpace(themeName))
                    return new Windows7Theme();
                return (Theme)typeof(Theme).Assembly.CreateInstance(string.Format("Telerik.Windows.Controls.{0}Theme", themeName));

            void SetGlobalTheme(Theme theme)
                StyleManager.ApplicationTheme = theme;
                StyleManager.SetTheme(radRibbonView1, theme);


            private void RadRibbonRadioButton_Click(object sender, RoutedEventArgs e)
                RadRibbonRadioButton radioButton = (RadRibbonRadioButton)sender;
                Theme currentTheme = ConvertToTheme(radioButton.Text);//Button's content is theme name, like Office_Silver

  2. Miro Miroslavov
    Miro Miroslavov avatar
    588 posts

    Posted 18 Apr 2012 Link to this post

    Hello Ke Yin,

     You shouldn't change at runtime the ApplicationTheme статиц property. You should only use the StyleManager.SetTheme method. Also you may try the new Implicit styles themes coming with the Q1.Sp1 release. 
    You may examine the online demo of the Ribbon and changing the themes. (or your local wpf examples)

    Kind regards,
    Miro Miroslavov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top