Measure Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Determines the size requirements for the layout of a child element.
Namespace: Microsoft.SPOT.Presentation
Assembly: Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)
Syntax
'Declaration
Public Sub Measure ( _
availableWidth As Integer, _
availableHeight As Integer _
)
public void Measure(
int availableWidth,
int availableHeight
)
public:
void Measure(
int availableWidth,
int availableHeight
)
member Measure :
availableWidth:int *
availableHeight:int -> unit
public function Measure(
availableWidth : int,
availableHeight : int
)
Parameters
- availableWidth
Type: System. . :: . .Int32
The width of the available space that a parent element can allocate to a child element.
- availableHeight
Type: System. . :: . .Int32
The height of the available space that a parent element can allocate to a child element.
Remarks
Calling this method constitutes the first pass of a layout update in the layout engine.
Computation of layout positioning in Windows Presentation Foundation (WPF) consists of a Measure method call and an Arrange method call. During the Measure call, an element determines its size requirements, using the specified available sizes. During the Arrange call, the element size is finalized and returned.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.