Is it possible to override the ItemsPresenter to use a Virtualizing StackPanel instead of a regular stack panel?
问题 Background I have a custom control that inherits from a TreeView and is modified to display in a data grid style. The problem I am seeing is with performance when expanding the tree. This is common from my research with Tree Views. Upon inspection with the WPF Performance tools I noticed that the ItemsPresenter class is using a regular Stack Panel instead of a Virtualizing Stack Panel. Here is the section of code where the ScrollContentPresenter is used (showing in image).