Skip to main content
.NET Framework Class Library
GridMeasureOverride Method

Measures the children of a Grid in anticipation of arranging them during the ArrangeOverride pass.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
Syntax
Protected Overrides Function MeasureOverride ( _
	constraint As [%$TOPIC/ms589020_en-us_VS_110_3_0_0_0_0%] _
) As [%$TOPIC/ms589020_en-us_VS_110_3_0_0_0_1%]
protected override [%$TOPIC/ms589020_en-us_VS_110_3_0_1_0_0%] MeasureOverride(
	[%$TOPIC/ms589020_en-us_VS_110_3_0_1_0_1%] constraint
)
protected:
virtual [%$TOPIC/ms589020_en-us_VS_110_3_0_2_0_0%] MeasureOverride(
	[%$TOPIC/ms589020_en-us_VS_110_3_0_2_0_1%] constraint
) override
abstract MeasureOverride : 
        constraint:[%$TOPIC/ms589020_en-us_VS_110_3_0_3_0_0%] -> [%$TOPIC/ms589020_en-us_VS_110_3_0_3_0_1%]  
override MeasureOverride : 
        constraint:[%$TOPIC/ms589020_en-us_VS_110_3_0_3_0_2%] -> [%$TOPIC/ms589020_en-us_VS_110_3_0_3_0_3%]
protected override function MeasureOverride(
	constraint : [%$TOPIC/ms589020_en-us_VS_110_3_0_4_0_0%]
) : [%$TOPIC/ms589020_en-us_VS_110_3_0_4_0_1%]

Parameters

constraint
Type: System.WindowsSize

Indicates an upper limit size that should not be exceeded.

Return Value

Type: System.WindowsSize
Size that represents the required size to arrange child content.
Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1