Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Visual.Opacity Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

The opacity of the visual. Animatable.

The opacity property determines the transparency, if any, of the Visual and is a value from 0 to 1. 0 is fully transparent and 1 is full opaque. A Visual with an Opacity property of 0 is still present in the tree. Like other properties on the Visual, Opacity can be animated using the Windows,UI.Composition animation system.

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

void Opacity(float value);
public float Opacity { get; set; }
var single = visual.opacity;
visual.opacity = single;
Public Property Opacity As Single

Property Value

Single

float

The opacity of the visual.

Remarks

This property can be animated. Call CompositionObject.StartAnimation to associate it with a CompositionAnimation.

Applies to


Feedback

Was this page helpful?