Επεξεργασία

Κοινή χρήση μέσω


Window.AllowsTransparency Property

Definition

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

Property Value

true if the window supports transparency; otherwise, false.

Exceptions

A window that has a WindowStyle value of anything other than None.

Remarks

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.

Dependency Property Information

Identifier field AllowsTransparencyProperty
Metadata properties set to true None

Applies to