Hello:
I have a storyboard defined in VisualState as follows for a StackPanel
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="VisualStateGroup">
<VisualStateGroup.Transitions>
<VisualTransition GeneratedDuration="0:0:12">
<Storyboard x:Name="myStoryBoard">
<DoubleAnimationUsingKeyFrames
Please note that StoryBoard is defined with "name" and not as Key.
Now I want to start this StoryBoard upon "loaded" event of the stackpanel using EventTrigger as follows
<StackPanel.Triggers>
<EventTrigger RoutedEvent="StackPanel.Loaded">
<BeginStoryboard Storyboard="myStoryBoard"/>
</EventTrigger>
</StackPanel.Triggers>
Whatever I tried to assign as Value of the StoryBoard Property, gives only an error. Can I specify StoryBoard within BeginStoryboard when StoryBoard is not defined in Key/value pair?
Thanks