Silverlight DRY when animating multiple UserControls on main Navigation page.

Posted by Tobias op den Brouw on Stack Overflow See other posts from Stack Overflow or by Tobias op den Brouw
Published on 2009-05-13T14:52:48Z Indexed on 2010/05/06 4:08 UTC
Read the original article Hit count: 293

Filed under:
|

Hello all.

Starting with Silverlight development. Yet to read a good Silverlight book: suggestions welcome.

I have a main GUI screen where 7 user controls (menu items) 'swoop' into sight, all along their own path. I have the user controls nicely seperated and behaving well. Having multiple storyboards (1 each for each menuitem) with multiple keyframe animations (X,Y,height, width) in one .XAML is not sitting well with me. Repeating all those property values is hideous, neverthemind maintenance.

I've tried to move values into the app.xaml and set animation durations with style keys, but having limited success. Can anyone suggest a nice way of making this cleaner? Refactor the storyboards out to their own control? Property values in resources? Dynamic building in codebehind?

Referring me to a how-to site is fine as well. Tx!

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about oo