locked
WPF animation. One trigger with two properties in an animation??? RRS feed

  • Question

  • Hi, is there a way to have two properties in an animation?

    So, say on a button click the button width goes from 50 to 200 and then afterwards (not at the same time) the height goes from 50 to 200?

    No problem if not (and I know the above effect will look naff), I'm just trying to find limits.

    Thanks,

    Tom.

    Thursday, April 26, 2012 9:56 PM

Answers

  • You can animate just one prop in an animation,
    but you can have one, two or many animations in a triggers storyboard.
    And you can orchestrate the animation starts by cascading
    the BeginTime properties.
    So doable.

    Chris
    • Proposed as answer by Thorsten Gudera Friday, April 27, 2012 1:05 PM
    • Marked as answer by tombola Saturday, April 28, 2012 8:15 PM
    Thursday, April 26, 2012 10:04 PM

All replies

  • You can animate just one prop in an animation,
    but you can have one, two or many animations in a triggers storyboard.
    And you can orchestrate the animation starts by cascading
    the BeginTime properties.
    So doable.

    Chris
    • Proposed as answer by Thorsten Gudera Friday, April 27, 2012 1:05 PM
    • Marked as answer by tombola Saturday, April 28, 2012 8:15 PM
    Thursday, April 26, 2012 10:04 PM
  • You can animate just one prop in an animation,
    but you can have one, two or many animations in a triggers storyboard.
    And you can orchestrate the animation starts by cascading
    the BeginTime properties.
    So doable.

    Chris

    BeginTime, can't believe I didn't notice that. Thanks man.
    Saturday, April 28, 2012 8:15 PM