WPF Canvas-based ItemsControl with minimum recycled items?
问题 I'm using an ItemsControl with a Canvas as its backing Panel . I often need to .Clear() the ObservableCollection is the ItemsControl's ItemSource , and then add new information to it, which causes all the controls to be destroyed and new UserControl s to be created, which is very sluggish. How can I force the ItemsControl to retain a certain amount of containers even after I call .Clear(), and then reuse them when new items are added to the ItemSource? 回答1: I am not sure how efficient this