次の方法で共有


GreedyWrapPanel.MeasureOverride(Size) Method

Definition

This method calculates the amount of space this panel will request. For Orientation=Vertical, it will use as many columns as it has space and children for. For Orientation=Horizontal, it will use as many rows as it has space and children for.

protected:
 override System::Windows::Size MeasureOverride(System::Windows::Size availableSize);
protected override System.Windows.Size MeasureOverride (System.Windows.Size availableSize);
override this.MeasureOverride : System.Windows.Size -> System.Windows.Size
Protected Overrides Function MeasureOverride (availableSize As Size) As Size

Parameters

availableSize
Size

The maximum space that the parent is giving this panel.

Returns

The amount of space that this panel is requesting.

Applies to