Bug Report T466975
Visible to All Users

The "Cannot set OverridesDefaultStyle property in the default Style" exception occurs at design time when using ListBoxEdit and the LightGray theme

created 8 years ago (modified 8 years ago)

While similar issues were fixed in the past, it is still possible to reproduce this exception when using the layout provided by Chris Dickerson in the Q469122 ticket. Please take a look at the attached sample.

Comments (1)
DevExpress Support Team 8 years ago

    Hi all,

    I'd like to share some details on why such issues occur. Default styles from our themes do no contain setters for the OverridesDefaultStyle property, and the issue occurs in a very specific scenario. It is partially related to our mechanism of loading theme resources, and we have found a way to reproduce it without our themes - see the attached sample.
    Taking into account that the exception occurs only at design time, we tend to think that this issue is related to the VS designer. However, we have found a way to avoid it on our side by caching loaded resource dictionaries.

    We will publish a hotfix with these modifications in the near future. I would like to encourage everybody who has the issue to download this fix in order to test it. If you find any inconsistency that may be related to the fix, please let us know. We will research the issue promptly.

    Answers approved by DevExpress Support

    created 8 years ago

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Comments (1)

        This fixed the issue for me. I was running 16.2.3 standard previously.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.