Shape.Fill Property


Gets or sets the Brush that specifies how the shape's interior is painted.

Namespace:   System.Windows.Shapes
Assembly:  PresentationFramework (in PresentationFramework.dll)

public Brush Fill { get; set; }

Property Value

Type: System.Windows.Media.Brush

A Brush that describes how the shape's interior is painted. The default is null.

This example shows how to use the Fill property to set the background color of an Ellipse element.

.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft