HwndSourceParameters HwndSourceParameters HwndSourceParameters HwndSourceParameters Struct

Definition

Contains the parameters that are used to create an HwndSource object using the HwndSource(HwndSourceParameters) constructor.

public value class HwndSourceParameters
public struct HwndSourceParameters
type HwndSourceParameters = struct
Public Structure HwndSourceParameters
Inheritance
HwndSourceParametersHwndSourceParametersHwndSourceParametersHwndSourceParameters

Remarks

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

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

Important

Do not construct instances of this structure using the default (parameterless) constructor. An HwndSourceParameters instance that is 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 cannot display a window.

Constructors

HwndSourceParameters(String) HwndSourceParameters(String) HwndSourceParameters(String) HwndSourceParameters(String)

Initializes a new instance of the HwndSourceParameters class with a specified window name.

HwndSourceParameters(String, Int32, Int32) HwndSourceParameters(String, Int32, Int32) HwndSourceParameters(String, Int32, Int32) HwndSourceParameters(String, Int32, Int32)

Initializes a new instance of the HwndSourceParameters class with a specified window name and initial size.

Properties

AcquireHwndFocusInMenuMode AcquireHwndFocusInMenuMode AcquireHwndFocusInMenuMode AcquireHwndFocusInMenuMode

Gets or sets the value that determines whether to acquire Win32 focus for the WPF containing window when an HwndSource is created.

AdjustSizingForNonClientArea AdjustSizingForNonClientArea AdjustSizingForNonClientArea AdjustSizingForNonClientArea

Gets or sets a value that indicates whether to include the nonclient area for sizing.

ExtendedWindowStyle ExtendedWindowStyle ExtendedWindowStyle ExtendedWindowStyle

Gets or sets the extended Microsoft Windows styles for the window.

HasAssignedSize HasAssignedSize HasAssignedSize HasAssignedSize

Gets a value that indicates whether a size was assigned.

Height Height Height Height

Gets or sets a value that indicates the height of the window.

HwndSourceHook HwndSourceHook HwndSourceHook HwndSourceHook

Gets or sets the message hook for the window.

ParentWindow ParentWindow ParentWindow ParentWindow

Gets or sets the window handle (HWND) of the parent for the created window.

PositionX PositionX PositionX PositionX

Gets or sets the left-edge position of the window.

PositionY PositionY PositionY PositionY

Gets or sets the upper-edge position of the window.

RestoreFocusMode RestoreFocusMode RestoreFocusMode RestoreFocusMode

Gets or sets how WPF handles restoring focus to the window.

TreatAncestorsAsNonClientArea TreatAncestorsAsNonClientArea TreatAncestorsAsNonClientArea TreatAncestorsAsNonClientArea

Gets or sets a value that indicates whether the parent windows of the HwndSource should be considered the non-client area of the window during layout passes.

TreatAsInputRoot TreatAsInputRoot TreatAsInputRoot TreatAsInputRoot

Gets or sets a value that indicates whether the HwndSource should receive window messages raised by the message pump via the ComponentDispatcher.

UsesPerPixelOpacity UsesPerPixelOpacity UsesPerPixelOpacity UsesPerPixelOpacity

Gets a value that declares whether the per-pixel opacity of the source window content is respected.

UsesPerPixelTransparency UsesPerPixelTransparency UsesPerPixelTransparency UsesPerPixelTransparency

Gets a value that declares whether the per-pixel transparency of the source window content is respected.

Width Width Width Width

Gets or sets a value that indicates the width of the window.

WindowClassStyle WindowClassStyle WindowClassStyle WindowClassStyle

Gets or sets the Microsoft Windows class style for the window.

WindowName WindowName WindowName WindowName

Gets or sets the name of the window.

WindowStyle WindowStyle WindowStyle WindowStyle

Gets or sets the style for the window.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether this structure is equal to a specified object.

Equals(HwndSourceParameters) Equals(HwndSourceParameters) Equals(HwndSourceParameters) Equals(HwndSourceParameters)

Determines whether this structure is equal to a specified HwndSourceParameters structure.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns the hash code for this HwndSourceParameters instance.

SetPosition(Int32, Int32) SetPosition(Int32, Int32) SetPosition(Int32, Int32) SetPosition(Int32, Int32)

Sets the values that are used for the screen position of the window for the HwndSource.

SetSize(Int32, Int32) SetSize(Int32, Int32) SetSize(Int32, Int32) SetSize(Int32, Int32)

Sets the values that are used for the window size of the HwndSource.

Operators

Equality(HwndSourceParameters, HwndSourceParameters) Equality(HwndSourceParameters, HwndSourceParameters) Equality(HwndSourceParameters, HwndSourceParameters) Equality(HwndSourceParameters, HwndSourceParameters)

Determines whether an HwndSourceParameters structure is equal to another HwndSourceParameters structure.

Inequality(HwndSourceParameters, HwndSourceParameters) Inequality(HwndSourceParameters, HwndSourceParameters) Inequality(HwndSourceParameters, HwndSourceParameters) Inequality(HwndSourceParameters, HwndSourceParameters)

Determines whether an HwndSourceParameters structure is not equal to another HwndSourceParameters structure.

Applies to

See also