How can I implement fading in and out of Added/Removed ListItems

前端 未结 7 1675
难免孤独
难免孤独 2020-12-01 04:17

Suppose I have a ListBox bound to an ObservableCollection and I want to animate adding/removing of ListBoxItems eg. FadeIn/Out, SlideD

相关标签:
7条回答
  • 2020-12-01 05:12

    For me FrameworkElement.Unloaded event doesn't work - the item just disappears instantly. I can hardly believe that years of experience with WPF haven't produced anything prettier, but looks like the only way this can work is a hack described here: Animating removed item in Listbox ?..

    0 讨论(0)
提交回复
热议问题