Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 382533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:11:31+00:00 2026-05-12T15:11:31+00:00

I am creating an animation using story board and entire thing is inside a

  • 0

I am creating an animation using story board and entire thing is inside a ItemsControl,when i start the application the animation starts, but i want an ability to stop the animation as soon as we receive a value from the database. How do i get hold of a particular story board inside an ItemsControl template so that i can stop it in my code behind. Or is there a property that i can data bind and use in code behind.

Currently my code look like this

 <StackPanel 
     x:Name="spStart"
     Margin="0,10,5,0">
  <Image x:Name="Round" Source="Images/Start.png"
    Height="35"
    Stretch="Uniform"  
    ToolTipService.ToolTip="Start"
    RenderTransformOrigin="0.5,0.5">
    <Image.RenderTransform>
      <TransformGroup>
        <RotateTransform/>
      </TransformGroup>
    </Image.RenderTransform>

    <Image.Triggers> 
      <EventTrigger RoutedEvent="Grid.Loaded">
        <BeginStoryboard>
          <Storyboard x:Name="RotatingStory" Completed="myStoryboard_Completed"
            x:Uid="{Binding FileReceived}">
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"  
              Storyboard.TargetName="Round"
              Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(RotateTransform.Angle)">
              <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
              <SplineDoubleKeyFrame KeyTime="00:00:03" Value="360"/>
            </DoubleAnimationUsingKeyFrames>
          </Storyboard>
        </BeginStoryboard>
      </EventTrigger>
    </Image.Triggers>
  </Image>
</StackPanel>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:11:31+00:00Added an answer on May 12, 2026 at 3:11 pm

    Looking at the documentation have tried this:-

     var sb = ((BeginStoryBoard)Round.Triggers[0].Actions[0]).Storyboard;
     sb.Stop;  // Or whatever else you want to do the storyboard such as SkipToFill.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I m creating a game, in that i want to use some animation, but
I am currently creating an animation in jQuery using Spritely. How would i go
Using jQuery I'm creating a basic 'tooltip' animation so that the tooltip will appear
i creating an application with movie animation , i have a animation some group
I am creating an iPad application using a UISplitView. I used the default template
I'm creating an animated landing page using jQuery. In the animation when the mouse
I am creating one application in that i want to give background effect like
I'm creating a project in flex builder but it's not using the flex framework,
Ok So I'm creating a Windows Forms Application for some guy using C# and
I'm using a UIActivityIndicator inside a UIBarButtonItem to show activity, but the indicator is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.