DataTriggers seem to ignore Converters
Posted: 11 Feb 2016, 17:30
Hi there,
Using a Converter in a DataTrigger binding is not working, the Converter's return value seems to be ignored and the original value is used instead.
Example:
In the above example the Return2TestConverter converter always returns 2. However the DataTrigger only triggers when the value of EquipmentSlot.Equipment.OperatingPowerLevel is 2.
Would it be possible to get this corrected?
On a side note (and far less important) I have seen WPF examples use Value="True" and Value="False" for boolean values. These do not seem to work in Noesis.
Thanks!
Using a Converter in a DataTrigger binding is not working, the Converter's return value seems to be ignored and the original value is used instead.
Example:
Code: Select all
<DataTrigger Binding="{Binding EquipmentSlot.Equipment.OperatingPowerLevel, Converter={StaticResource Return2TestConverter}}" Value="2">
<Setter Property="Stroke" Value="#FF4BAABE" />
</DataTrigger>
Would it be possible to get this corrected?
On a side note (and far less important) I have seen WPF examples use Value="True" and Value="False" for boolean values. These do not seem to work in Noesis.
Thanks!