SpriteVisual.Brush Property

Definition

A CompositionBrush describing how the SpriteVisual is painted.

Equivalent WinUI property: Microsoft.UI.Composition.SpriteVisual.Brush.

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

void Brush(CompositionBrush value);
public CompositionBrush Brush { get; set; }
var compositionBrush = spriteVisual.brush;
spriteVisual.brush = compositionBrush;
Public Property Brush As CompositionBrush

Property Value

CompositionBrush

A CompositionBrush describing how the SpriteVisual is painted.

Applies to