DrawingML is the graphics markup language used in Office Open XML documents. Unlike the standalone WordprocessingML and PresentationML languages which represent docx and pptx documents, DrawingML is always embedded inside another mark-up language as content. DrawingML is used throughout all Office Open documents to display vector graphics, from text effects to complex 3D charts.
In this article we are going to examine how to generate simple DrawingML shapes. The application that we’re going to build iterates on a previous Open XML Developer application, a Silverlight Word document generator. We’ll and add a simple painting surface to Silverlight and render the shapes drawn in Silverlight as DrawingML graphics to the final generated document.