I'm trying to setup a trigger so if two values match a color change happens, this is easy when the thing to match is static and can be placed right into xaml, but not when the thing to be compared is dynamic, such as a property. Basically is there anyway to bind the value of a trigger to a property?
Example - Error says value can not use a binding. This leads me to think that value has to be static.
<TextBlock Name="MyTextBlock" Text="{Binding someProp}">
<TextBlock.Resources>
<Style TargetType="TextBlock">
<Style.Triggers>
<DataTrigger Binding="{Binding ElementName=MyTextBlock, Path=Text}" Value="{Binding someOtherProperty}">
Do some stuff here
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Resources>
</Textblock>
EDIT: Updated it to a data trigger, but the issue remains.