Search code examples
wpfxamlexpression-blendexpression-blend-4expression-blend-5

Expression Blend - Copy Object and Keyframes?


Is there a way to copy-paste an control and keep all of its keyframes?

Everything I've tried will copy the control and have a completely blank animation for the copied control. This seems like it would be easily done by manually editing Xaml, but is there a way to do it from the Blend UI?

I'm using the new VS 2012 Blend Preview+Sketchflow, but I've tried in VS 2012 Blend and Blend 4 also with no luck.


Solution

  • When you're copying the Control, you're just copying the object, if you want the animations ('StoryBoard') you'll have to grab those separately from the Resources which don't appear in the Objects and Timeline Panel so they can't be selected like a standard object.

    What you could do though, is if you're trying to re-use the same StoryBoard in multiple places, place the StoryBoard in a Resource Dictionary available globally then you don't have to worry about copying it to each instance. Hope this helps.