ListBox Grouping and Virtualization

Maintain Scrolling with IOuterPanel

groupingpanelsetoffsets.png

IOuterPanel needs to tell its collection of INestedPanels about changes in scrolling. If you’ve implemented IScrollInfo relatively well, everything related to updating the offsets will be funneled into SetVerticalOffset() and SetHorizontalOffset(). In these two methods, call INestedPanel’s corresponding methods if they are allowed. When they are called, have INestedPanel call InvalidateMeasure() to trigger a new layout pass. This is required so that each INestedPanel will perform virtualization.

Explore posts in the same categories: WPF

Pages: 1 2 3 4 5 6 7

Tags: , , , , ,

You can comment below, or link to this permanent URL from your own site.

One Comment on “ListBox Grouping and Virtualization”

  1. Luke Says:

    Great blog post! Can you please provide more details how you reworked your solution to support sorting? I am having trouble with virtualization when grouping is enabled and can’t seem to solve this issue.


Comment:

You must be logged in to post a comment.