Windows Dev Center

Brush.Opacity property

Gets or sets the degree of opacity of a Brush.

Syntax


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


<brush Opacity="double"/>

Property value

Type: System.Double [.NET] | float64 [C++]

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.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Media
Windows::UI::Xaml::Media [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Media
Windows::UI::Xaml::Media [C++]

Metadata

Windows.winmd

See also

Brush

 

 

Show:
© 2015 Microsoft