ParallelTimeline can't be used with VSM

Jun 18, 2009 at 12:02 PM

Hello,

Is ParallelTimeline not supported in VSM? According to the code below, I found that ParallelTimeline can't be casted as a stroyboard so the exception will be thrown at result[new TimelineDataToken(child)] = child;. Any plan to support it?  

private static void FlattenTimelines(Storyboard storyboard, Dictionary<TimelineDataToken, Timeline> result)

        {

            if (storyboard == null)

            {

                return;

            }

 

            for (int index = 0; index < storyboard.Children.Count; ++index)

            {

                Timeline child = storyboard.Children[index];

                Storyboard childStoryboard = child as Storyboard;

                if (childStoryboard != null)

                {

                    FlattenTimelines(childStoryboard, result);

                }

                else

                {

                    result[new TimelineDataToken(child)] = child;

                }

            }

        }