Export (0) Print
Expand All
Run
Expand Minimize

Ellipse

Silverlight

Draws an ellipse shape.

<Ellipse   .../>

A shape cannot support child objects.

For more information on basic concepts, see Shapes and Drawing. Note that the Shapes and Drawing topic is written primarily for users of the managed API, and may not have code examples or specific information that address the JavaScript API scenarios.

The following example creates an Ellipse object in XAML and sets some of its common properties as attribute values.

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

Reference

Community Additions

ADD
Show:
© 2014 Microsoft