Export (0) Print
Expand All

HwndHost.MeasureOverride Method

Returns the size of the window represented by the HwndHost object, as requested by layout engine operations.

Namespace: System.Windows.Interop
Assembly: PresentationFramework (in presentationframework.dll)

protected:
virtual Size MeasureOverride (
	Size constraint
) override
protected Size MeasureOverride (
	Size constraint
)
protected override function MeasureOverride (
	constraint : Size
) : Size
You cannot use methods in XAML.

Parameters

constraint

The size of the HwndHost object.

Return Value

The size of the HwndHost object.

Security noteSecurity Note:

This type or member is not available in the Internet security zone.

Notes to Implementers: In Win32, a window is expected to be the size requested by layout at the time the window is created. Derived classes should override this method only if they have additional information regarding required window size. The specific implementation here is already an override of the FrameworkElement virtual member, which bases size constraints on the window handle and treats a zero value in one or more dimensions as a non-constraint.The WindowsFormsHost class also overrides a MeasureOverride implementation that will result in a clip of the form if it is too large.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft