I have an external style resource in a resource dictionary I’m referencing with x:Key. It has an x:TargetType specifying a target (TextBlock). Is it possible to apply this to a control containing a TextBlock and have all TextBlock elements within that control have the style applied?
Thanks,
Robert
The easiest way to do that would be to define a Style within the Control that is based on your external style resource, but don’t specify an x:Key, just the TargetType.
Without a key, it’ll apply itself to all TextBlocks within the control.