Export (0) Print
Expand All

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:
property Brush^ Fill {
	Brush^ get ();
	void set (Brush^ value);
}

Property Value

Type: System.Windows.Media::Brush
A Brush that describes how the shape's interior is painted. The default is nullptr.

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

<Page  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <StackPanel>
    <Ellipse Fill="Red" Width="100" Height="100" />
  </StackPanel>
</Page>
No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft