Telerik UI for Windows Phone by Progress

RadDataBoundListBox exposes the ItemAnimationEnded event to notify when an animation for a particular visual container has ended. The event provides information about the animation that has ended, as well as about the amount of the remaining item animations of the same type.

Handling the ItemAnimationEnded event

The following C# code snippet demonstrates how the ItemAnimationEnded event is handled:

CopyC#
public ItemAnimations()
{
    InitializeComponent();
    this.listBox.ItemAnimationEnded += new EventHandler<ItemAnimationEndedEventArgs>(OnListBox_ItemAnimationEnded);
}

private void OnListBox_ItemAnimationEnded(object sender, ItemAnimationEndedEventArgs e)
{
    if (e.Animation == this.listBox.ItemRemovedAnimation && e.RemainingAnimationsCount == 0)
    {
        ////Do something...
    }
}

The ItemAnimationEnded event exposes an instance of the ItemAnimationEndedEventArgs class that holds information about the type of animation that has ended and the count of remaining animations of the same type. The type of the ended animation could either be the ItemAddedAnimation instance, or the ItemRemovedAnimation instance.

See Also