ThicknessAnimationUsingKeyFrames doesn't work the first time, but second and all subsequent times wo

Posted by 110022530536665626169 on Stack Overflow See other posts from Stack Overflow or by 110022530536665626169
Published on 2010-06-03T17:02:15Z Indexed on 2010/06/03 17:04 UTC
Read the original article Hit count: 144

Filed under:
|
|

I have the following Storyboard:

'LayoutMargin' is a dependency property defined in the ancestor Window. This is the problem I'm having: The first time I run the animation it doesn't work - as if the LayoutMargin.Value isn't set. However, the second time I run the animation, and all subsequent times I run the animation, it work just fine. At first I suspected the LayoutMargin.Value was not set prior to the first animation, but it is set.

Does anyone have any ideas about why this is happening?

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf