Animated panel and ListCollectionView filter

Views for WPF Forum

Posted 14 years ago by Kasper
We have a problem getting an animated wrappanel to animate when the items is filtered using a ListCollectionView, instead of animating the filtered items the entire panel just blinks and the new layout is shown.

The animation works fine when Adding / Removing items, but hiding items using the filter does not. What are we doing wrong?

XAML from out test project:

     <ListBox ItemsSource="{Binding Path=Items}"
             SelectedItem="{Binding Path=SelectedItem}"
          <views:AnimatedWrapPanel />
Where; Items is a ListCollectionView on where we call Refresh() when the filter logic changes and we expects the filter/unfiltered items to be animated.

Comments (2)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Kaspar,

When applying a filter to a ListCollectionView, it sends a "reset" notification for the collection. This effectively removes all the items from the ListBox, then re-adds the new non-filtered items. When adding/removing individual items, only those items are affected.

More information can be found here:

Actipro Software Support

Posted 14 years ago by Kasper
Forgot to reply and say thanks, using the IEditableObject worked. Thanks.
The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.