HwndSource.UsesPerPixelOpacity Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 {
	[SecurityCriticalAttribute]
	get;
}

Property Value

Type: System.Boolean

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

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.

.NET Framework
Available since 3.0
Return to top
Show: