ContainerVisual.OpacityMask Property


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

Gets or sets a brush that specifies a possible opacity mask for the ContainerVisual.

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

member OpacityMask : Brush with get, set

Property Value

Type: System.Windows.Media.Brush

A value of type Brush that represents the opacity mask value of the ContainerVisual.

Opacity masks can be used to create effects such as vignettes, based on the alpha channel values of the brush.

.NET Framework
Available since 3.0
Return to top