The objects are WPF specific, but same thing...
var v = Style.Triggers.Where(x => x is EventTrigger)
.Cast<EventTrigger>()
.Select(x => x.Actions);
At this point, I get 3 TriggerActionCollections which is correct. What I want to do next is select the items within each collection that are "is BeginStoryboard". I can't seem to work out how to select the items within Actions (the TriggerActionsCollection).
I was thinking something like this:
var v = Style.Triggers.Where(x => x is EventTrigger)
.Cast<EventTrigger>()
.Select(x => x.Actions.Select(y => y).Where(y => y is BeginStoryboard));
But that isn't working. Any help guys?
For those non-wpf folks. Yes, there are 3 TriggerActionCollections and in one of those there is a BeginStoryBoard object. But for arguments sake I want EVERY BeginStoryBoard object flattened out.