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 8309049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:59:32+00:00 2026-06-08T18:59:32+00:00

I have this code and cannot figure out how to disable the animation. Any

  • 0

I have this code and cannot figure out how to disable the animation.

Any clue? Thank you!

      #region Blinking Animation
            Storyboard sb = new Storyboard();
            if (IsImageBlinking)
            {
                DoubleAnimation da = new DoubleAnimation();

                da.From = 1.0;
                da.To = 0.0;
                da.RepeatBehavior = RepeatBehavior.Forever;
                da.AutoReverse = true;


                sb.Children.Add(da);
                Storyboard.SetTargetProperty(da, new PropertyPath("(Image.Opacity)"));
                Storyboard.SetTarget(da, image1);
                sb.Begin();
            }
            else // This code doesn't disable the animation :(
            {
//!!!! Here I need to disable the animation.  
                sb.Stop();
                sb.Children.Clear();
            }

            #endregion
  • 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-06-08T18:59:34+00:00Added an answer on June 8, 2026 at 6:59 pm

    It works if you use the same Storyboard instance for Begin and Stop. Declare sb as a member of your class:

    public class MainWindow
    {
        private Storyboard sb = new Storyboard();
    
        ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code and cannot figure out how it could be simplified via
I have been staring at this code and cannot figure out what is wrong
I have looked all over and cannot figure out why this code isn't working.
I have this code: set_value(X,Value,[X/_|T],[X/Value|T]). set_value(X,Value,[Y/V|T],[Y/V|NewT):- X\=Y,set_value(X,Value,T,NewT). set_value(X,Value,[],[X/Value]). But I cannot figure out what
I have this very annoying problem I cannot figure out. This is the main
I have been staring at this code for hours now and I cannot figure
I have been looking at this code for a while now, and cannot figure
I cannot access to server through RestClient. I have this code written in cURL
I have seen this symbol/operator in a block of code: a+=1; But I cannot
Ignoring unsafe code, .NET cannot have memory leaks. I've read this endlessly from many

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.