VirtualizingStackPanel.MeasureOverride(Size) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Measures the child elements of a VirtualizingStackPanel in anticipation of arranging them during the ArrangeOverride(Size) pass.
protected:
override System::Windows::Size MeasureOverride(System::Windows::Size constraint);
protected override System.Windows.Size MeasureOverride (System.Windows.Size constraint);
override this.MeasureOverride : System.Windows.Size -> System.Windows.Size
Protected Overrides Function MeasureOverride (constraint As Size) As Size
Parameters
Returns
The Size that represents the desired size of the element.
Remarks
When scrolling, VirtualizingStackPanel does not grow in layout size, but effectively adds its descendants on a z-plane, which is normally clipped by a parent element (typically a ScrollContentPresenter) to the size of the stack.