I am trying to create a new style based on the existing "SubheaderTextBlockStyle" style.
I did:
<Style x:Key="HeaderTextBlockStyle" TargetType="TextBlock" BasedOn="{StaticResource SubheaderTextBlockStyle}">
But it cannot compile, I get a message that the Style BasedOn property should be a Style object, not a ThemeResourceExtension object.
How to get around this problem?
source
share