Window.AllowsTransparency Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that indicates whether a window's client area supports transparency.
public:
property bool AllowsTransparency { bool get(); void set(bool value); };
public bool AllowsTransparency { get; set; }
member this.AllowsTransparency : bool with get, set
Public Property AllowsTransparency As Boolean
true
if the window supports transparency; otherwise, false
.
A window that has a WindowStyle value of anything other than None.
When the Background property of a window is set to a transparent color, using Transparent for example, the window remains opaque. This means that the desktop and any running applications "beneath" the window cannot be seen. To enable this type of transparency, AllowsTransparency must be set to true
.
AllowsTransparency exists to facilitate the creation of non-rectangular windows, and, consequently, when AllowsTransparency is set to true
, a window's WindowStyle property must be set to None.
Identifier field | AllowsTransparencyProperty |
Metadata properties set to true |
None |
Product | Versions |
---|---|
.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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: