EDIT: Thus, it turns out that it was a problem with the code in the virtual machine (a rather embarrassing property check that always returned true [after the refactoring session)) - I would suggest that I look for the data binding as a normal suspect (at least , for me)
Thank you for all your help and apologize for wasting your time.
Hi, I'm trying to get this to just change the text color to red or green depending on the logical property of the dependencies in the viewmodel. Triggers - that's where the problem is ... I think?
<TextBlock>
<TextBlock.Style>
<Style>
<Style.Triggers>
<DataTrigger Binding="{Binding IsNegativeChange}" Value="true">
<Setter Property="TextBlock.Foreground" Value="Red" />
</DataTrigger>
<DataTrigger Binding="{Binding IsNegativeChange}" Value="false">
<Setter Property="TextBlock.Foreground" Value="Green" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
<TextBlock.Text>
<MultiBinding StringFormat="{}{0} ({1})">
<Binding Path="ReturnedData.Change" />
<Binding Path="ReturnedData.ChangePercentage" />
</MultiBinding>
</TextBlock.Text>
</TextBlock>
IsNegativeChange is a member of the ViewModel itself and therefore does not need the qualification ReturnedData.
. ViewModel true/false . Help! - , ?
[ ]
, :
BindingExpression: Path = IsNegativeChange; DataItem = NULL; "TextBlock" (Name= ''); target - NoTarget ( 'Object')
?