Grid.MeasureOverride(Size) 方法

定义

测量 Grid 的子元素,以便准备在 ArrangeOverride(Size) 传递过程中排列它们。Measures the children of a Grid 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

参数

constraint
Size

指示不应超过的上限大小。Indicates an upper limit size that should not be exceeded.

返回

Size,表示排列子内容所需的大小。Size that represents the required size to arrange child content.

适用于

另请参阅