Updates the
System.Windows.UIElement.DesiredSize of a
System.Windows.UIElement. Typically, objects that implement custom layout for their layout children call this method from their own
System.Windows.FrameworkElement.MeasureOverride(System.Windows.Size) implementations to form a recursive layout update.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Sub Measure( _
ByVal availableSize As System.Windows.Size _
) |
Parameters
- availableSize
- The available space that a parent can allocate a child object. A child object can request a larger space than what is available; the provided size might be accommodated if scrolling or other resize behavior is possible in that particular container.
Exceptions
| Exception | Description |
| System.InvalidOperationException | availableSize contained a System.Double.NaN value. See Remarks. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also