there is a way to specify something like this in WPF:
CSS
#someSpan input { color: #f1f1f1; } or span input { color: #f1f1f1; }
Meaning, I would like all the TextBlock elements inside the container to match the x style, without using a style for each text block.
just to clarify, I need to do something similar in WPF.
I know about the BasedOn attribute of the style .. but this is not quite what I am looking for here
looking for something like this
<Style x:Key="FileItem" TargetType="{x:Type #SomeContainer TextBlock}">
or maybe in SomeContainer, add a TextBlock style that will apply to all its text blocks
source share