Compartir a través de


Grid.MeasureOverride Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Protected Overrides NotOverridable Function MeasureOverride ( _
    constraint As Size _
) As Size
protected override sealed Size MeasureOverride(
    Size constraint
)

Parameters

  • constraint
    Type: System.Windows.Size
    Indicates an upper limit size that should not be exceeded.

Return Value

Type: System.Windows.Size
Size that represents the maximum area available to the child content for layout.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

Other Resources