By default, the grid will take all the room that it requires; therefore, if it is not given a size constraint, such as when it is placed in a StackPanel, and a large amount of data items are present, UI virtualization will be lost—resulting in a significant loss in performance. To preserve UI virtualization when the grid is in a StackPanel, the MaxWidth and MaxHeight properties (or Width and Height) must be used to constrain the grid. As an alternative, a DockPanel or Grid can be used as both impose size constraints on their child elements.
Does this situtation apply?
Imported from legacy forums. Posted by Jenny [Xceed] (had 280 views)
If the width is set to Auto, the grid will occupy all the space that is available to it. Giving it constraints, such as setting its (or its parent’s) Width/Height properties to an explicit value should fix the problem.
Imported from legacy forums. Posted by Jenny [Xceed] (had 203 views)