Thanks for writing back.
You can create various animations very easily by using our animation framework. Just take a look at the source code of the ItemAnimations
example of RadDataBoundListBox
RadMoveAndFadeAnimation moveAndFade =
moveAndFade.FadeAnimation.StartOpacity = 0;
moveAndFade.FadeAnimation.EndOpacity = 1;
You can reuse this snippet in order to create a faster fade out and move animation to mimic the native behavior in the mail client.
Another possibility would be to use a RadAnimationGroup
and fill it with a RadResizeAnimation
is a RadAnimation
itself so you can directly set it to the ItemRemovedAnimation
property of RadDataBoundListBox.
As for the issue with setting proper start values for animations: you don't need to do this. In the case of the different heights of your visual items you simply need to define the end value of the animation, not the start one. The animation itself will detect the current value of the property you are animating and will start from it.
I hope this helps.
Let me know if you need further assistance here.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>