Please find a modified version of the same sample project attached to my answer, where the same
issue is reproduced with a TextBlock (the style is not applied to the
first one). Adding a dummy style works fine.
The approach with a dummy style can be used for the RibbonWindow Style as well:
However I would not recommend using a deep hierarchy of resource
dictionaries in your application.
Microsoft defines setting a ResourceDictionary's content inline as not a common scenario and recommends defining such styles in the main ResourceDictionary and not in the merged dictionaries as was my first proposal.
It is legal to define resources within a ResourceDictionary that is specified as a merged dictionary, either as an alternative to specifying Source,
or in addition to whatever resources are included from the specified
source. However, this is not a common scenario; the main scenario for
merged dictionaries is to merge resources from external file locations.
If you want to specify resources within the markup for a page, you
should typically define these in the main ResourceDictionary and not in the merged dictionaries.
I hope this helps.
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom
free technical training, available to all active customers.Learn More.