Is there a way to put Setter elements inside EventTrigger? Is there a way to put Setter elements inside EventTrigger? windows windows

Is there a way to put Setter elements inside EventTrigger?


You can put a StoryBoard there, and have it start an ObjectAnimationUsingKeyFrames that will "animate" your properties instantly to the target state. If your properties are double or Color - even better: you will be able to actually make them transition smoothly using DoubleAnimation or ColorAnimation respectively.

I think this is a bit of an overkill, but if you want to use pure XAML, this is possible to do.