Hi,
I have a DataGrid bound to a list of objects that have a Value property. When the Value property for an object increases I want the bound cell in the grid to flash a predetermined colour and when the Value decreases it should flash a different predetermined colour.
I plan to use an Animation/Storyboard to achieve this. As far as I can see the built-in triggers (property, data, and event) cannot handle this situation on their own.
I can possibly create a custom DataGridCell and override the OnContentChanged method to determine if the value has decreased or increased and then raise a custom event, e.g. ValueIncrease or ValueDecreased. I should the be able to use a property trigger to start the animation. Alternatively I embed the animation in my custom DataGridCell and trigger it from within the control.
Is there a standard/better way to do this?
Thanks,
b_e_n_u_k