Error while using StaticResource

I am getting this error

{StaticResource Value StoryboardIntroAnimation} Attribute Missing Range

when i try to use static resource as Storyboard property of BeginStoryboard object. The markup looks like this:

<UserControl ...>
   <UserControl.Resources>
      <Storyboard x:Key="StoryboardIntroAnimation">
         ...
      </Storyboard>
   </UserControl.Resources>

   <UserControl.Triggers>
        <EventTrigger>
            <EventTrigger.Actions>
                <BeginStoryboard Storyboard="{StaticResource StoryboardIntroAnimation}" />
            </EventTrigger.Actions>
        </EventTrigger>
    </UserControl.Triggers>

   ...
</UserControl>

      

Does anyone know why this is happening?

+2


source to share


1 answer


Set RoutedEvent to EventTrigger?



0


source







All Articles