An SvgNode instance represents nodes that can display SVG drawings in addition to the rendering provided by the base ShapeNode class. The SVG drawing is rendered after the associated Image and just before the DrawNode event is raised with CustomDraw.Additional.
The SVG drawing of the node is specified through its Content property. The SVG graphics is loaded and associated with the node through an SvgContent object, which should be initialized and then assigned to this property.
The following code illustrates how to load an SVG graphics from a local file and associate it with an existing SvgNode (referenced by the svgNode variable):
SvgContent content = new SvgContent(); content.Parse(@"c:\image.svg"); svgNode.Content = content;
Dim content As New SvgContent() content.Parse("c:\image.svg") svgNode.Content = content
The SvgContent class is defined in the MindFusion.Svg.dll assembly. You need to add a reference to this assembly in the target project and import the necessary namespaces.