[DevExpress Support Team: CLONED FROM Q433375: wpf theme problem]
Hello,
Today I was having same behavior with 13.2.8 version. Removing the line of code "dx:ThemeManager.ThemeName="LightGray"" causes a cyclical exception with TextEdit control, related to theme process. Really annonaying this issue.
I have a question here: If you remove this line of code, why is not placed again when a new theme is selected ???. Seems that app.config is affected too. Removing the lines in the .config file related to DevExpress theme management, causes exceptions too.
See attached image.
Thank you.
César Qüeb
I am afraid I cannot find an appropriate solution to this problem without additional information. Would you please try to reproduce this issue by using the attached project? Thank you for your cooperation in advance.
>>>>
why is not placed again when a new theme is selected ???
<<<<
This is designed behavior. When the user changes an application theme in design mode of MS Visual Studio, this information is saved to the App.config file automatically.
Hi Elliot,
Unfortunately the exception is not reproduced with attached project, but I can duplicate with my local project. Today I was very hurry to finish a priority project. Later I will to attach here a similar project to review this exception.
Regards
Thank you for your clarification. I will be wait for a response from you. If you experience any further difficulties, do not hesitate to contact us again. I am here to help you.
Hello,
I had this similar problem. I was working with VS 2012, and the installed version of Devexpress components is 13.2.9.
One of my forms has the following line of code: dx:ThemeManager.ThemeName="LightGray", but when i removed that i got OperationInvalidException which its message was "Cannot set OverridesDefaultStyle property in the default Style".
but when i changed its default theme, after of one compilation, I had no such problem! its weird!
This issue will be processed in the Removing the line of code "dx:ThemeManager.ThemeName="LightGray"" causes a cyclical exception ticket.
The exception "Cannot set OverridesDefaultStyle property in the default Style" is thrown following instructions at below:
Notice:
if the line of code "dx:ThemeManager.ThemeName="LightGray" is remain in the code, ignores the theme that developer set via smart tag button.
The cyclical exception related to texteditor control is not thrown in this version 13.2.9.14129.
It seems you forgot to attach a sample project to the message. Would you please post it here to replicate this issue on our side? Thank you for your cooperation in advance.
Here is the attached file. Sorry for the omission.
Hello,
It works as expected on my side. Please review the attached screencast and let me know if I missed something.
As for the notice, this behavior is correct because the dx:ThemeManager.ThemeName property has a higher priority than ApplicationThemeName. It allows you to specify the theme for a child element.
Thanks,
Michael
Hello Michael,
Could you upload the screencast file, please?.
Thank you in advance.
I apologize for the inconvenience. I have attached a screencast. Please review it.
Hi Michael,
The only thing I see different in your process is that every time you enable or you disable the line of code in question, you recompile the project and do not open a window design (master) mode. The exception occurs when you uncomment the line of code and open a form in design mode.
Regards
Thank you for the clarification. I have successfully reproduced the "InvalidOperationException: Cannot set OverridesDefaultStyle property in the default Style." exception in the VS designer and passed it to our developers, so they can research it more thoroughly.
Thanks,
Michael
Hi, we have the same probleme. do you have find a solution ?
Hi Jean,
I will check on the status of this issue and get back to you with the results.
Thanks for your patience.
Alex
Jean,
We have fixed this issue. Please try the hotfix once it is available and let us know your results.
Thanks,
Alex