I have a library of custom controls in which I defined a control pattern that uses some custom styles. My control template is located in the Generic.xaml file, as well as the styles used there and access to it using the control template with the StaticResource markup extension.
In some cases, when I use this library of controls, I want to change some of the templates used by templates, but I don’t know how to do it.
I thought that if I added a style with the name used by the template to my Windows Resource Dictionary, my style will “override” the one defined in the Generic.xaml file, but it does not work. <sh> What should I do?
source
share