EllipseGeometry


EllipseGeometryHierarchy: Freezable Animatable Geometry

Type: Simple Geometry

     <EllipseGeometry         Center="50,50"         RadiusX="20"         RadiusY="20" /> 

or:

     <EllipseGeometry         RadiusX="20"         RadiusY="20">         <EllipseGeometry.Center>             <Point                 X="50"                 Y="50" />         </EllipseGeometry.Center>     </EllipseGeometry> 

<EllipseGeometry .../> represents the geometry of an ellipse or a circle. The Center attribute can be specified either as inline markup or by declaring a Point. A circle can be defined with equivalent values in RadiusX and RadiusY (Figure 9-5).

Figure 9-5. Drawing a circle with EllipseGeometry


Attributes


Center (required)

Describes the center of the ellipse using inline markup as a comma-separated x-, y-coordinate pair or by explicitly declaring a Point element


RadiusX (required)

A Double value representing the x-radius of the ellipse


RadiusY (required)

A Double value representing the y-radius of the ellipse




XAML in a Nutshell
XAML in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596526733
EAN: 2147483647
Year: 2007
Pages: 217

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net