HwndSource.UsesPerPixelOpacity Property

Definition

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

public bool UsesPerPixelOpacity { [System.Security.SecurityCritical] get; }
public bool UsesPerPixelOpacity { get; }

Property Value

true if the system uses per-pixel opacity; otherwise, false.

Attributes

Remarks

When you enable per-pixel opacity, the system no longer draws the non-client area. This is because the intended purpose of UsesPerPixelOpacity is to show non-rectangular top-level UI that works in interoperation scenarios. Therefore, showing the rectangular non-client area defeats that purpose.

Applies to

製品 バージョン
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10