Initializes a new instance of the EllipseGeometry class that has a horizontal diameter equal to the width of the passed Rect, a vertical diameter equal to the length of the passed Rect, and a center point location equal to the center of the passed Rect.

Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the SnapshotAndReplace handoff behavior is used.(Inherited from Animatable.)

Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the specified HandoffBehavior is used. (Inherited from Animatable.)

Creates a modifiable clone of this EllipseGeometry, making deep copies of this object's values. When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values.

Creates a modifiable clone of this EllipseGeometry object, making deep copies of this object's current values. Resource references, data bindings, and animations are not copied, but their current values are.

Coerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.(Inherited from DependencyObject.)

Returns an axis-aligned rectangle that is exactly large enough to contain the geometry after it has been outlined with the specified Pen, given the specified tolerance factor.(Inherited from Geometry.)

Gets a value that describes the intersection between the specified Geometry and the stroke created by applying the specified Pen to the current geometry, given the specified margin of error.(Inherited from Geometry.)

Use the EllipseGeometry class with a Path element or a GeometryDrawing to draw an ellipse, or with the Clip property of a UIElement to define an elliptical clip region. The EllipseGeometry class also has many other uses. For more information about EllipseGeometry, see Geometry Overview.

The Ellipse class has a Fill, Stroke, and other rendering properties that EllipseGeometry lacks. The Ellipse class is a FrameworkElement and therefore participates in the layout system; it can be used as the content of any element that supports UIElement children.

The EllipseGeometry class, on the other hand, simply defines the geometry of an ellipse, and cannot render itself. Because of its simplicity, it has a wider range of uses.

<Pagexmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"mc:Ignorable="PresentationOptions"Margin="20"Background="White"><BorderBorderBrush="Gray"BorderThickness="1"HorizontalAlignment="Left"VerticalAlignment="Top"Margin="10"><ImageStretch="None"HorizontalAlignment="Left"><Image.Source><DrawingImagePresentationOptions:Freeze="True"><DrawingImage.Drawing><GeometryDrawing><GeometryDrawing.Geometry><!-- Create a composite shape. --><GeometryGroup><EllipseGeometryCenter="50,50"RadiusX="45"RadiusY="20"/><EllipseGeometryCenter="50,50"RadiusX="20"RadiusY="45"/></GeometryGroup></GeometryDrawing.Geometry><GeometryDrawing.Brush><!-- Paint the drawing with a gradient. --><LinearGradientBrush><GradientStopOffset="0.0"Color="Blue"/><GradientStopOffset="1.0"Color="#CCCCFF"/></LinearGradientBrush></GeometryDrawing.Brush><GeometryDrawing.Pen><!-- Outline the drawing with a solid color. --><PenThickness="10"Brush="Black"/></GeometryDrawing.Pen></GeometryDrawing></DrawingImage.Drawing></DrawingImage></Image.Source></Image></Border></Page>