Gets or sets the geometry used to define the outline of the contents of an element. This is a .GTMT
Assembly: PresentationCore (in PresentationCore.dll)
The following example shows an Imageelement without a defined clip region. Because no clip region is defined, the entire image is displayed.
In the next example, an identical Image is created, except that it has a defined clip region. Only the part of the image that is within the area the EllipseGeometrywill be displayed.
The following example shows how animate a framework element's EllipseGeometry is used to define an elliptical clip region for an Image element. A PointAnimation animates the ellipse geometry's Center property from (0, 0) to (200, 150). The animation starts playing after the image is loaded and repeats indefinitely.region. In this example, an
For the full sample, see the .83043a0b-f824-445f-9675-103280c5ca67
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0