How can I implement fading in and out of Added/Rem

2019-01-13 08:39发布

Suppose I have a ListBox bound to an ObservableCollection and I want to animate adding/removing of ListBoxItems eg. FadeIn/Out, SlideDown/Up etc. How can I do that?

7条回答
戒情不戒烟
2楼-- · 2019-01-13 09:06

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 ?..

查看更多
登录 后发表回答