Shape.Fill Property

Definition

Gets or sets the Brush that paints the interior area of the shape.

Equivalent WinUI property: Microsoft.UI.Xaml.Shapes.Shape.Fill.

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

void Fill(Brush value);
public Brush Fill { get; set; }
var brush = shape.fill;
shape.fill = brush;
Public Property Fill As Brush
<shape Fill="{StaticResource resourceName}"/>
- or -
<shape Fill="colorString"/>
- or -
<shape>
  <shape.Fill>singleBrush</shape.Fill>
</shape>

Property Value

Brush

A Brush that paints/fills the shape interior. The default is null, (a null brush) which is evaluated as Transparent for rendering.

Applies to

See also