Can you prevent the redefinition of WPF style through code?

We are currently in a situation where we have partner WPF styles that we can override for customization.

However, in one case, it seems that the style is later redefined by code that we do not have access to. This means that any changes that I apply to the style will not have an effect, because at some point in time the code will go in and change it again.

Question: is there a way to mark a style as not redefined (so to speak), so that regardless of what happens in the code, some property values ​​will remain unchanged?

+4
source share

All Articles