WPF RelativeSource FindAncestor doesn't work outside of the Control.Resources context?
- by sker
I have this VisualBrush resource I took from some site and I apply it with triggers to a TextBox.
<VisualBrush x:Key="HelpBrush" TileMode="None" Opacity="0.4" Stretch="None" AlignmentX="Left">
<VisualBrush.Visual>
<TextBlock FontStyle="Italic"
Text="{Binding Path=Tag, RelativeSource={RelativeSource…