Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
XamRibbonWindow (error while creating window)
posted

Hi

I just wanted to share a solution to a strange problem: an exception is thrown during creation of XamRibbonWindow on Windows XP:

An element is already added. Key in dictionary: 'RibbonBrushKeys.ScenicCaptionCloseBtnPressedBorderFillKey' Key being added: 'RibbonBrushKeys.ScenicCaptionCloseBtnPressedBorderFillKey' Error in object „System.Windows.ResourceDictionary”.

After conversations it appeared to be an issue related to currently selected windows theme which was Olive. After changing windows theme do Default or Silver it started working properly.

  • 5
    posted

    Got this error too today on some XP machines and not on others. I only get it with version 10.2 though. When I started using version 10.1 again all worked fine.