Hi,
I do have a WPF ListBox, displaying custom items. For this I have a Template and I use animations to indicate a kind of data change. But the animation seems to be a one-way road. The template definition goes:
<DataTemplate><Grid RenderOptions.ClearTypeHint="Enabled"><!-- ... --></Grid><DataTemplate.Triggers><DataTrigger Binding="{Binding Group}" Value="1"><DataTrigger.EnterActions><!-- ... --></DataTrigger.EnterActions></DataTrigger><DataTrigger Binding="{Binding Group}" Value="2"><DataTrigger.EnterActions><!-- ... --></DataTrigger.EnterActions></DataTrigger><DataTrigger Binding="{Binding Group}" Value="3"><DataTrigger.EnterActions><!-- ... --></DataTrigger.EnterActions></DataTrigger></DataTemplate.Triggers></DataTemplate>
That works fine when the data comes from the value "1" to "2" and "2" to "3". It doesn't work when it comes from "3" to "1" or "2" to "1".
What do I wrong?
Best regards,
Torsten