HwndSourceParameters.UsesPerPixelOpacity Property


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

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

public bool UsesPerPixelOpacity { get; set; }

Property Value

Type: System.Boolean

true if using per-pixel opacity; otherwise, false.

By enabling per-pixel opacity, the system no longer draws the non-client area.

The opacity is used when the window is drawn on the desktop (it represents a final rendering step and does not appear as a contributor to property values such as Opacity).

UsesPerPixelOpacity applies only to top-level windows.

.NET Framework
Available since 3.0
Return to top