may be a noob question, but how do I find the DataContext of my Control in datatrigger...? I can't bind to the text Property, since the Stringformat this is not the bound value... I don't want to bind directly to myText, since this style should apply in a ResDic and the Bound Property of the Textblocks may vary (as Stringformat may too)....
Actually I need the bound value of the actual Textblock to compare...
<TextBlock Text="{Binding myText, StringFormat='This Text is: {0}'}">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Style.Triggers>
<DataTrigger Binding="????"
Value="555">
<Setter Property="Foreground"
Value="Red" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
BR, Daniel