Click or drag to resize
DigitalRuneScrollViewerOnMeasure Method
Called by Measure(Vector2F) to compute the control-specific desired size.

Namespace: DigitalRune.Game.UI.Controls
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax
protected override Vector2F OnMeasure(
	Vector2F availableSize
)

Parameters

availableSize
Type: DigitalRune.Mathematics.AlgebraVector2F
The available space that the parent can allocate to this control. The Margin has already been subtracted from this size. The control can ignore this parameter and request a larger size. This parameter is used by controls that adapt their size to the available space, like wrap panels.

Return Value

Type: Vector2F
The desired size (without Margin).
Remarks
This method does not change the DesiredWidth and DesiredHeight properties, it only returns the desired size as the result of the method. This method must call Measure(Vector2F) of the visual children.
See Also