IXRShape (Windows Embedded CE 6.0)
1/6/2010
This class represents the base class for shape elements, such as an ellipse, a path, and a rectangle.
Syntax
class IXRShape : public IXRFrameworkElement
Methods
Method | Description |
---|---|
Retrieves the Brush that specifies how to paint the interior of this shape. |
|
Retrieves the IXRMatrix object calculated by Silverlight for Windows Embedded that describes how the geometry of a shape is transformed before it is drawn on-screen. |
|
Retrieves a value that describes how this shape fills its allocated space. |
|
Retrieves the Brush that specifies how the outline of this shape object is painted. |
|
Retrieves a collection of float values that indicate the pattern of dashes and gaps that is used to outline a shape object. |
|
Retrieves a value that indicates how the ends of a dash are drawn on-screen. |
|
Retrieves a value that specifies the distance within the dash pattern where a dash begins. |
|
Retrieves a value that describes the shape at the end of a line in this shape object. |
|
Retrieves a value that specifies the kind of vertices that are used when two lines or segments are connected in a shape object. |
|
Retrieves a limit on the ratio of the miter length to half the width of the stroke in a shape object. |
|
Retrieves a value that describes the shape located at the beginning of a stroke in a shape object. |
|
Retrieves a value that describes the width of the outline of a stroke in a shape object. |
|
Sets the Brush that specifies how to paint the interior of this shape. |
|
Sets a value that describes how this shape fills its allocated space. |
|
Sets a Brush that specifies how the outline of this shape object is painted. |
|
Sets a collection of double values that indicate the pattern of dashes and gaps that is used to outline a shape object. |
|
Sets a value that indicates how the ends of a dash are drawn on-screen. |
|
Sets a value that specifies the distance within the dash pattern where a dash begins. |
|
Sets a value that describes the shape at the end of a line in this shape object. |
|
Sets a value that specifies the kind of vertices to use when two lines or segments are connected in a shape object. |
|
Sets a new limit on the ratio of the miter length to half the width of the stroke in a shape object. |
|
Sets a value that describes the new shape located at the beginning of a stroke in a shape object. |
|
Sets a value that describes the width of the outline of a stroke in a shape object. |
Remarks
An IXRShape object is a kind of UI element that enables you to draw a shape, such as a path, line, or ellipse, onto the screen. Shape objects can be used inside many different container objects such as IXRGrid and IXRCanvas.
An IXRPath object derives from IXRShape. A path element is a shape. However, instead of being defined by discrete properties, the shape of a path element is defined either as a geometry data which is held in its associated IXRGeometry object that is retrievable by using IXRPath::GetData. Or, its shape is defined through a mini-language that is declared in XAML markup.
You can access an existing IXRShape derived object in the visual tree by obtaining a pointer to a visual host, retrieving the host's root element, traversing the element tree, and then calling IUnknown::QueryInterface on a named object in the visual tree. Or, you can create a new IXRShape derived object yourself and insert it into a generated visual tree, as an alternative to declaring it in the source XAML for your application.
A shape object can also be declared in XAML. When you load the source XAML for your application, the shape object is added to the element tree. For more information about how to create a shape object in XAML (by using elements such as <Line>, <Ellipse>, and <Rectangle>), see Remarks in the class topic for the specific IXRShape derived class.
Inheritance Hierarchy
IXRShape
.NET Framework Equivalent
System.Windows.Shapes.Shape
Requirements
Header | XamlRuntime.h |
sysgen | SYSGEN_XAML_RUNTIME |
Windows Embedded CE | Windows Embedded CE 6.0 R3 |