DataTriggers seem to ignore Converters
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!
-
-
sfernandez
Site Admin
- Posts: 3222
- Joined:
Re: DataTriggers seem to ignore Converters
Yes, there is task to allow the use of converters in DataTriggers for 1.2.6 version: https://trello.com/c/Qqy1Vgd6
Do you mean in DataTriggers? Because "True" and "False" are used all around the NoesisStyle templates.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.
Re: DataTriggers seem to ignore Converters
Actually sorry, I just realised I had tested "True" and "False" with a Converter (before I realised they were ignored). The Converter was the issue there.
Glad to hear the fix is incoming.
Thanks for your time.
Glad to hear the fix is incoming.
Thanks for your time.
Re: DataTriggers seem to ignore Converters
This was fixed in 1.2.6
Who is online
Users browsing this forum: Google [Bot] and 0 guests