Search code examples
wpftriggersdatatriggereventtriggermultidatatrigger

Event and Data Triggers can be combined?


Is it possible to declare a MultiTrigger with an Event and a DataTrigger?

I have a scenario to start a Storyboard which is given in the Event Trigger when a bool Property of Control is set to True.

That why i need to make these two as a MultiTrigger. I know that there is no direct way to do it, but am looking for any workaround..

Any idea on this?


Solution

  • I had an workaround for this..

    Creating a property in the Custom control and that to be targeted and changed in the Storyboard.

    The property which is targeted previously was bound with this new Property as MultiBuinding and have converter for that. So there i can get both the values, with that i can return the value which required for the base property.