Shape::Fill Property
.NET Framework (current version)
Gets or sets the Brush that specifies how the shape's interior is painted.
Assembly: PresentationFramework (in PresentationFramework.dll)
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>
.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: