BuildWindowCore Method

HwndHost.BuildWindowCore Method

When overridden in a derived class, creates the window to be hosted.

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

protected abstract HandleRef BuildWindowCore (
	HandleRef hwndParent
protected abstract HandleRef BuildWindowCore (
	HandleRef hwndParent
protected abstract function BuildWindowCore (
	hwndParent : HandleRef
) : HandleRef
You cannot use methods in XAML.



The window handle of the parent window.

Return Value

The handle to the child Win32 window to create.

This method's implementation is called from within the internal implementation of BuildWindowCore.

Notes to Inheritors: Override this method to build the window being hosted. The window that you return must be a child of the window specified by hwndParent. In addition, the child window will only be created if the window is owned by the calling thread.

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

© 2016 Microsoft