Version

PerformAutoSize Method (IAutoResizeHost)

Invoked to resizes the specified item based on the size of its contents.
Syntax
'Declaration
 
Function PerformAutoSize( _
   ByVal resizableItem As FrameworkElement, _
   ByVal resizeInXAxis As Boolean _
) As Boolean
bool PerformAutoSize( 
   FrameworkElement resizableItem,
   bool resizeInXAxis
)

Parameters

resizableItem
The item that contains the ResizeContext
resizeInXAxis
True to resize the width and false to resize the height.

Return Value

Returns true if the autosize was performed; otherwise false is returned.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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