Share via


IXRGeometry (Windows Embedded CE 6.0)

1/6/2010

This class provides a base class for objects that define shapes.

Syntax

class IXRGeometry : public IXRDependencyObject

Methods

In addition to the methods inherited from IXRDependencyObject, this class contains the following methods.

Name Description

IXRGeometry::GetBounds

Retrieves the bounding box of the current object.

IXRGeometry::GetTransform

Retrieves the IXRTransform derived object that affects the current object.

IXRGeometry::SetTransform

Applies an IXRTransform derived object to the current object.

Remarks

You can use IXRGeometry objects to clip regions and to define geometry for rendering two-dimensional graphic data as a path.

IXREllipseGeometry, IXRLineGeometry, and IXRRectangleGeometry are simple geometries that specify the geometrical shape as one element with basic coordinate or dimension properties. IXRGeometryGroup uses a collection of IXRGeometry objects to define a complex geometry. IXRPathGeometry uses a collection of IXRPathFigure objects to define a complex geometry.

You can also define an IXRGeometry object in Microsoft Silverlight 2 XAML. For information about the differences between XAML in Silverlight for Windows Embedded and Silverlight 2, see Differences Between Silverlight for the Web and Silverlight for Windows Embedded. For more information about how to define this element in the source XAML for your application, see this Microsoft Web site.

Ee504078.collapse(en-US,WinEmbedded.60).gifIXRGeometry Compared to IXRShape

The IXRShape class and the classes that derive from it have rendering properties that IXRGeometry and its derived classes lack. IXRShape derives from IXRFrameworkElement and therefore can render itself. You can use its derived classes as content in any element that supports IXRUIElement children.

The geometry classes define the geometry of graphic elements and are used to define a path.

Inheritance Hierarchy

IXRDependencyObject

  IXRGeometry

    IXREllipseGeometry

    IXRGeometryGroup

    IXRLineGeometry

    IXRPathGeometry

    IXRRectangleGeometry

.NET Framework Equivalent

System.Windows.Media.Geometry

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

Classes for Visual Appearance and Behavior
IXRPath::SetData