silverlight - Creating 'fun' storyboard animations? -
silverlight - Creating 'fun' storyboard animations? -
i'm using storyboarding this:
doubleanimation doubleanimation = new doubleanimation( ); doubleanimation.from = _scrollbar.value; doubleanimation.to = _shift; doubleanimation.duration = new duration( new timespan( 0, 0, 0, 0, 200 ) ); storyboard.settarget( doubleanimation, _scrollbar ); storyboard.settargetproperty( doubleanimation, new propertypath( rangebase.valueproperty ) ); storyboard.children.add( doubleanimation ); storyboard.begin( ); which linearly scrolls scrollbar. wondering if there's quick'n'easy ways create animation fun (i.e. none linear). maybe wobble effect?
you need @ easingfunctions part of animations. these allow specify effect (there bunch of pre-canned ones take from), , apply formula linear value change, 'wobbling' bit.
references:
add easing effects on animations wpf 4 easing functions easing animation wpf , silverlight easing functions in wpf 4 (and silverlight)don't create basic error of going overboard these though - don't want annoy crap out of user :) know looking for, find there bunch of previous questions here on sort of thing can check through.
silverlight animation scrollbar interpolation
Comments
Post a Comment