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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:05:01+00:00 2026-05-28T11:05:01+00:00

I managed to developp a storyboard to translate an object from its initial position

  • 0

I managed to developp a storyboard to translate an object from its initial position to another position, but when I trigger the storyboard a second time, or call another storyboard, the object always translate from its initial position, not from the new one established after the first translation. How to change it ?

My code :

 TranslateTransform animatedTranslateTransform = new TranslateTransform();
 this.RegisterName("slide", animatedTranslateTransform);
 TransformGroup transformGroup = new TransformGroup();
 transformGroup.Children.Add(animatedTranslateTransform);
 _button.RenderTransform = transformGroup;

 //translate Y
 DoubleAnimation slideDown = new DoubleAnimation(20, TimeSpan.FromSeconds(1.0));
 Storyboard.SetTargetName(slideDown, "slide");
 Storyboard.SetTargetProperty(slideDown, new PropertyPath(TranslateTransform.YProperty));
 storyBoardSlideDown.Children.Add(slideDown);
  • 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-28T11:05:02+00:00Added an answer on May 28, 2026 at 11:05 am

    Use DoubleAnimation.By instead of DoubleAnimation.To. From MSDN:

    The animation progresses from the base value of the property being
    animated or a previous animation’s output value to the sum of that
    value and the value specified by the By property

    Write

    DoubleAnimation slideDown =
        new DoubleAnimation { By = 20, Duration = TimeSpan.FromSeconds(1.0) };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I managed to get some help from a previous question and I have the
I managed to get the YUI calendar widget working fine. But When it displays
PHP/MySQL newbie here. I managed to develop a web page that displays info from
If a .NET program directly or indirectly needs to call platform dependent/native/un managed code
How do I pass PHP session data from one Apache virtual host to another?
I need to develop some classes that should be callable from VB6 with Managed
I managed to develop a PHP authentication/activation form which works fine for what I
I managed to create a class using CodeDom and add a single method to
The Managed Extensibility Framework (MEF) and Managed AddIn Framework (MAF, aka System.AddIn) seem to
Does managed C++ have an equivalent to C#'s lock() and VB's SyncLock? If so,

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.