microsoft / XamlBehaviors

This is the official home for UWP XAML Behaviors on GitHub.
MIT License
697 stars 112 forks source link

Is it not possible to specify a TargetName for a ControlStoryboardAction.Play type event? #191

Open MGRussell opened 4 years ago

MGRussell commented 4 years ago

Is there a normal way to enable ControlStoryboardAction's to work with Storyboards that are used to target multiple different controls? In other words, ones that do not explicitly declare a Storyboard.TargetName?

I found one way to do this by setting the Storyboard's TargetName to a DynamicResource, but it's somewhat bloaty/hacky as it requires setting x:Shared to false. Because of the fact that x:Shared is false now you also run into the issue that said Storyboard will no longer work with things like StoryboardCompletedTrigger triggers.