Page 2 of 2

Re: [Unity] Dynamically changing Animation Values with Bindi

Posted: 13 Oct 2014, 16:40
by rcalt2vt
The animation value is just another value source, in fact the animation value is not modifying the local value (that remains the same during all the animation duration). You can specify how your storyboard behaves when the animation completes by setting the FillBehavior property:
  • <Storyboard x:Key="anim"> or <Storyboard x:Key="anim" FillBehavior="HoldEnd"> is the default behavior, that will maintain the last animated value after animation ends.
  • <Storyboard x:Key="anim" FillBehavior="Stop"> will remove last animated value after animation ends, so the local (or any other value with less precedence) will be recovered.
Oh, interesting. That gives me a few ideas to simplify what I am trying to do. Thanks again. There's still so much xaml to learn hehe.