DropShadow.Mask 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.
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.