Ellipse Object

Draws an ellipse shape.

XAML
<Ellipse .../>
Scripting
To create an object using scripting, see CreateFromXAML.

Remarks

A shape cannot support child objects.

Examples

The following example shows how to create an Ellipse in XAML and set some of its common properties as attribute values.

XAML
<Canvas   
  xmlns="http://schemas.microsoft.com/client/2007"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
 
  <Ellipse
    Fill="Yellow"
    Height="100"
    Width="200"
    StrokeThickness="2"
    Stroke="Black"/> 
</Canvas>

See Also

Shapes Overview
Shape

Community Additions

Show: