MeasureOverride Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Determines the custom size requirements for the layout of a child element when implemented in a derived class.

Namespace:  Microsoft.SPOT.Presentation
Assembly:  Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)

Syntax

'Declaration
Protected Overridable Sub MeasureOverride ( _
    availableWidth As Integer, _
    availableHeight As Integer, _
    <OutAttribute> ByRef desiredWidth As Integer, _
    <OutAttribute> ByRef desiredHeight As Integer _
)
protected virtual void MeasureOverride(
    int availableWidth,
    int availableHeight,
    out int desiredWidth,
    out int desiredHeight
)
protected:
virtual void MeasureOverride(
    int availableWidth, 
    int availableHeight, 
    [OutAttribute] int% desiredWidth, 
    [OutAttribute] int% desiredHeight
)
abstract MeasureOverride : 
        availableWidth:int * 
        availableHeight:int * 
        desiredWidth:int byref * 
        desiredHeight:int byref -> unit 
override MeasureOverride : 
        availableWidth:int * 
        availableHeight:int * 
        desiredWidth:int byref * 
        desiredHeight:int byref -> unit 
protected function MeasureOverride(
    availableWidth : int, 
    availableHeight : int, 
    desiredWidth : int, 
    desiredHeight : 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.
  • desiredWidth
    Type: System. . :: . .Int32%
    The width of the space that a parent element will allocate to a child element.
  • desiredHeight
    Type: System. . :: . .Int32%
    The height of the space that a parent element will allocate to a child element.

Remarks

You should override this virtual method to implement custom sizing behavior for your element, because it is part of the Windows Presentation Foundation (WPF) layout system.

.NET Framework Security

See Also

Reference

UIElement Class

Microsoft.SPOT.Presentation Namespace