If i'm using ControlTemplate.Triggers that used by <Trigger Property="IsMouseOver" Value="True">
How can I restore the previous value in case that IsMouseOver will be false?
(For example change background to green on IsMouseOver=true
and revert to previous color before change. The previous color can be set on the control himself and not necessarily inside of the style)
Facets:
- I'm using stoaryboard in the trigger
- In the control style I set the background to Blue
- In the implementation of the window with the control i'm setting the control to the style but set the background of the control to Red.
- I want to set animation that will change it from red to green and when IsMouseOver=false revert it to red again.
Please Help Me!