Rect


RectRect is a structure and has no class hierarchy.

     <Rect         Location="0,0"         Width="100"         Height="100" /> 

or:

     <Rect         X="0"         Y="0"         Width="100"         Height="100" /> 

<Rect .../> represents a rectangle and is most commonly used in other elements to describe rectangular regions for hit-testing or filling a region. Rect is generally set through abbreviated markup syntax using a space-delimited list of parameters, beginning with the Location and followed by Width and Height:

     <Element RectangleAttribute="0,0 100 100" /> 

Attributes


Height (optional)

This Double value describes the height of the rectangle.


Location (optional)

This Point describes the top-left corner of the rectangle. It can be described using abbreviated markup syntax or explicitly using the X and Y attributes.


Width (optional)

This Double value describes the width of the rectangle.


X (optional)

This Double value describes the x-coordinate of the top-left corner of the rectangle.


Y (optional)

This Double value describes the y-coordinate of the top-left corner of the rectangle.




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