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.
The "Cannot set OverridesDefaultStyle property in the default Style" exception occurs at design time when using ListBoxEdit and the LightGray theme
Answers approved by DevExpress Support
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.
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.