Configuring Your Own Custom Shapes

This topic provides some basic information about paths, Scalable Vector Graphics (SVG), and how to create your own custom shapes, which can be used in the Shape control or as a Shape visual item on a Map layer.

The Shape control and the Shape visual item on a Map layer use the Windows Presentation Foundation (WPF) Path control to create predefined and custom shapes. The underlying path data is specified using a subset of the Path Markup Syntax. Using the related Move and Draw commands, users can create their own custom graphics. For examples of this abbreviated syntax, inspect the value of the Shape Geometry property in the Shape control after choosing one of the predefined shapes in the Shape Type property.

Scalable Vector Graphics (SVG) technology is a text-based, open web standard for describing images that uses a geometric syntax or path to cleanly render lines, curves, and arcs at any size. SVG defines the graphics in an XML-based markup language, which can be leveraged to define the path required to draw two-dimensional vector graphics on a Canvas screen.

You can create your own custom SVG images (using a third-party tool or SVG editor), extract the path information from the SVG file, and then add the path data to Canvas to create the shape. Canvas then interprets the path data (and other configurable properties) to render the custom shape on your screen.