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: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.
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}"
ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<views:AnimatedWrapPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
...
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>