ElementHost::GetPreferredSize Method (Size)
.NET Framework (current version)
Overrides the base class implementation GetPreferredSize to provide correct layout behavior for the hosted Windows Presentation Foundation (WPF) elements.
Assembly: WindowsFormsIntegration (in WindowsFormsIntegration.dll)
Parameters
- proposedSize
-
Type:
System.Drawing::Size
The custom-sized area for a WPF element.
Return Value
Type: System.Drawing::SizeThe System.Drawing::Size computed by the ElementHost control, given the constraints specified by proposedSize.
.NET Framework
Available since 3.0
Available since 3.0
Show: