The talk about animations today reminds me of a question I've been
meaning to ask -
Having played with Flex, and a little with WPF and Silverlight, I
still find Flex animations much easier to do for simple things. For
example, if I want a panel to move and resize in parallel, and a label
to slide in after that has completed, I'd do the following in Flex:
<mx:Transition id="toShowBrandingPopupState" fromState=""
toState="showBrandingPopup">
<mx:Sequence>
<!-- animate branding popup -->
<mx:Parallel>
<mx:Move duration="1000"
target="{brandingPopupPanel}" xBy="-270"
yBy="-270" />
<mx:Resize duration="1000"
target="{brandingPopupPanel}"
widthTo="270" heightTo="270" />
</mx:Parallel>
<!-- this is the label's width + space for a
gap between this and
the logo -->
<mx:Move duration="500" target="{logoLabel}"
xBy="-120" />
</mx:Sequence>
</mx:Transition>
I know how to replicate that in WPF/Silverlight by setting the times
to emulate the parallel and sequence tags, but it feels tedious; I
don't really care about actual time values. And if I change the
duration of any component, I'd have to shift the times for everything
else after it. Also, if I want to dynamically create the
transition/storyboard, I'd have to account for the times for each
component, and shift things if I add animation components in between
others etc.
Is there any wrapper/library in WPF/SL that provides a Flex-style
animation API? It just feels so much simpler for animations like this.
Or do I just need some re-education to bend my brain to the SL way?
_______________________________________________
ozsilverlight mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight