Export (0) Print
Expand All
Run
Expand Minimize

EllipseGeometry

Silverlight

Represents the geometry of a circle or ellipse.

<EllipseGeometry   .../>

You can use geometries individually or in combination to declare the data for a Path object.

FillRule is technically a property inherited from the base Geometry object, but setting it has no effect on an EllipseGeometry.

For more information on basic concepts, see Geometries. Note that the Geometries 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 shows how to create an ellipse by using EllipseGeometry.

<Canvas  
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> 
  
  <Path Fill="Gold" Stroke="Black" StrokeThickness="1">
    <Path.Data>
      <EllipseGeometry Center="50,50" RadiusX="50" RadiusY="50" />
    </Path.Data>
  </Path> 
</Canvas>

Community Additions

ADD
Show:
© 2014 Microsoft