Export (0) Print
Expand All

DataGridCell.MeasureOverride Method

.NET Framework 4.6 and 4.5

Determines the desired size of the DataGridCell.

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 cell can occupy.

Return Value

Type: System.Windows.Size
The desired size of the DataGridCell.

The MeasureOverride method measures the area needed for the cell and the gridline on the right.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft