What is/are the main disadvantage of VirtualizingStackPanel? If it doesn’t have any, then why it is not made as a default panel behavior/template in ItemsControl?
What is/are the main disadvantage of VirtualizingStackPanel? If it doesn’t have any, then why
Share
The MSDN page on the
VirtualizingStackPanelClass has the following statements:and
and
From this it looks like for the “normal” use of a
StackPanelas a host for buttons, text blocks etc. virtualisation wouldn’t offer any advantages or might even impose a performance overhead. When used in aListBoxvirtualisation does have benefits as a) item containers are created by the items control and b) there are likely to be more elements in the list than can be shown on the screen at any one time.