Megosztás a következőn keresztül:


Visual.Opacity Property

Definition

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