Export (0) Print
Expand All

HwndSourceParameters Structure

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

Namespace: System.Windows.Interop
Assembly: PresentationCore (in presentationcore.dll)

public struct HwndSourceParameters
public final class HwndSourceParameters extends ValueType
<HwndSourceParameters .../>

This structure is only used in the HwndSource object constructor call. The various properties established by this structure are not exposed on HwndSource once constructed but typically affect properties such as "Height" and "Width" that can be determined by other means in specific hosted objects.

NoteImportant:

Do not construct instances of this structure using the default (parameterless) constructor. A HwndSourceParameters created by the default constructor will result in HwndSourceParameters that cannot be assigned a WindowName post-construction (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 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