Brush.Opacity Property


Gets or sets the degree of opacity of a Brush.

 property double Opacity { double get(); void set(double value); };
double Opacity();

void Opacity(double value);
public double Opacity { get; set; }
Public Property Opacity As Double
<brush Opacity="double"/>

Property Value


The value of the Opacity property is expressed as a value between 0 and 1.0. The default value is 1.0, which is full opacity. 0 is transparent opacity.

Applies to