DropShadow.Mask Property

Definition

Brush used to specify an opacity mask for the shadow. Defaults to the SpriteVisual's brush. Animatable.

public:
 property CompositionBrush ^ Mask { CompositionBrush ^ get(); void set(CompositionBrush ^ value); };
CompositionBrush Mask();

void Mask(CompositionBrush value);
public CompositionBrush Mask { get; set; }
var compositionBrush = dropShadow.mask;
dropShadow.mask = compositionBrush;
Public Property Mask As CompositionBrush

Property Value

Brush used to specify an opacity mask for the shadow. Defaults to the SpriteVisual's brush.

Remarks

A non-rectangular shadow can be casted by setting the Mask of the Shadow property to a SurfaceBrush that represents the shape.

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

Applies to