Well, sorry. I spent several hours experimenting and researching, and thought I needed some help.
This is one to get an unspecified error message. This is really frustrating when you realize that you are doing something to fix this problem, but the message did not update in Blend even after recovery! . After I closed and reopened Blend, he responded to my changes. If anyone else encounters this problem, it may help to find out that a restart of Blend is required.
Somehow, this particular error was caused by the readonly property, which really should not have been read only. After that, I had another problem inside the overridden OnApplyTemplate function. Now everything works as it should.
source share