In our application, we have customized the style of Hyperlink and TextBlock and merged it to Window resources. But, respective style not apply for the hyperlink and textblock controls that were defined inside the DataTemplate.
But suppose if we merge the resource dictionary in Application resources. It works fine.
Reproduction Steps
Note, we have merged resource dictionary in Windows.Resources.
Description
In our application, we have customized the style of Hyperlink and TextBlock and merged it to Window resources. But, respective style not apply for the hyperlink and textblock controls that were defined inside the DataTemplate.
But suppose if we merge the resource dictionary in Application resources. It works fine.
Reproduction Steps
Style-issue.zip
Expected behavior
Style should work for controls that were defined inside DataTemplate
Actual behavior
Style doesn't work for controls that were defined inside DataTemplate
Regression?
No response
Known Workarounds
No response
Impact
No response
Configuration
No response
Other information
No response