Export (0) Print
Expand All

HwndSourceParameters Structure

Contains the parameters used to create a HwndSource object using the HwndSource constructor.

Namespace:  System.Windows.Interop
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: Not mapped to an xmlns.

JScript supports the use of structures, but not the declaration of new ones.
<HwndSourceParameters .../>

This structure is used only in the HwndSource object constructor call.

The various properties whose values are established by this structure are not directly exposed on HwndSource instances when an HwndSource is constructed. However, the HwndSourceParameters values typically affect general UI properties such as "Height" and "Width" that might exist in specific hosted objects and their APIs.

Important noteImportant Note:

Do not construct instances of this structure using the default (parameterless) constructor. A HwndSourceParameters created by the default constructor results in HwndSourceParameters that cannot be assigned a WindowName (even though the WindowName property appears to be settable). If such an instance is applied as the parameters for an HwndSource constructor, the resulting HwndSource will never display a window.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

ADD
Show:
© 2014 Microsoft