1
votes

In WPF, is it possible to make an "event trigger story" based on the events that are fired?

In my concrete example, I want an event trigger that triggers on a button's mouse enter event. Then, I want a click event trigger OR a mouse leave event trigger. That is, if the user clicked the button, mouse leave event should not be triggered.

Is this possible with normal event triggers, or am I looking in the wrong place?

EDIT:

What I'm doing is that when the user clicks the button, I start the animation. However, the mouse leave event animates the same control/property so it "overrides" the on-going "click animation" if the user moves out of the button while the "click animation" is running.

1

1 Answers

1
votes

This is a good opportunity for a Multitrigger. Here is a good example of achieving an "OR" condition with triggers.