RibbonWindow Theme-Change Glitch

Ribbon for WPF Forum

Posted 16 years ago by Mike Strobel - Software Engineer, CDC Software
Version: 4.5.0481
Platform: .NET 3.5
Environment: Windows Vista (32-bit)
When testing our theme support this morning, I noticed a glitch in which changing the WPF Studio theme at runtime causes the RibbonWindow chrome to render incorrectly. Specifically, if I started with the Classic theme and then switched to an Office2007 theme (in my case Office2007Blue), the Classic chrome remained in place for any windows that were already Initialized (but not Loaded) when the theme changed. However, the elements within the chrome (e.g. the Maximize, Minimize, and Close buttons) rendered with the Office2007 theme.


Note that we are setting the theme via the ThemeManager.CurrentTheme property. Also, it seems to only happen when the Windows theme is set to "Windows Standard", "Windows Classic", or one of the high contrast modes.

Verified with a simple sample application:
  1. Create a new WPF application in Visual Studio using the "WPF Application" project template.
  2. Change Window1 from a System.Windows.Window to a RibbonWindow.
  3. Modify the constructor as follows:
    public Window1()
    ThemeManager.CurrentTheme = CommonThemeName.Classic.ToString();
    ThemeManager.CurrentTheme = CommonThemeName.Office2007Blue.ToString();
  4. Change your Windows theme to "Windows Standard".
  5. Run the application.

Comments (1)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Thanks Mike, this has been fixed for the next maintenance release.

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.