DataGridCellsPanel.MeasureOverride Method (Size)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Determines the desired size of the panel.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

protected override Size MeasureOverride(
	Size constraint
)

Parameters

constraint
Type: System.Windows.Size

The maximum size that the panel can occupy.

Return Value

Type: System.Windows.Size

The desired size of the panel.

The DataGridCellsPanel class uses the MeasureOverride method to determine which cells are visible and which cells are virtualized.

.NET Framework
Available since 4.0
Return to top
Show: