Colors.Transparent Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the system-defined color that has the ARGB value of #00FFFFFF.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Shared ReadOnly Property Transparent As Color
public static Color Transparent { get; }
<object property="Transparent"/>

Property Value

Type: System.Windows.Media.Color
A Color that has the ARGB value of #00FFFFFF.

Remarks

Transparent as a color generally dictates behavior that is different from having a null Brush. For instance, elements where a Background is set as Transparent are hit-testable, whereas objects with a Background that is using a null Brush is not hit-testable.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.