I've an svg file, contents are two groups of paths and some polygons which I should use as an input to image source.(svg contents:Two gids which consits collection of path and polygon shapes)
I extracted paths and polygons as below from svg and created geometry groups
<GeometryGroup x:Key="icon-2"
PresentationOptions:Freeze="True" >
<PathGeometry Figures="M0.664201681.........." />
<PathGeometry Figures="M0.664201681.........." />
<PathGeometry Figures="M0.664201681.........." />
</GeometryGroup>
<GeometryGroup x:Key="icon-1"
PresentationOptions:Freeze="True" >
<PathGeometry Figures="M0.664201681.........." />
<PathGeometry Figures="M0.664201681.........." />
<PathGeometry Figures="M0.664201681.........." />
</GeometryGroup>
I've some polygons as below in svg file
<polygon id="Shape" fill="#0067B1" points="42.1853782 0.249018403 0.249008405........"></polygon>
I tried adding the above polygon, but I got an error says Polygon is not supported.
<Style
x:Key="myLogoStyle"
TargetType="Image">
<Setter
Property="Source">
<Setter.Value>
<DrawingImage
PresentationOptions:Freeze="True" >
<DrawingImage.Drawing>
<DrawingGroup>
<GeometryDrawing Brush="#FFFFFF"
Geometry="{StaticResource icon-2}" />
<GeometryDrawing Brush="#000000"
Geometry="{StaticResource icon-1}" />
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
</Setter.Value>
</Setter>
</style>
Can someone please suggest, is there any way to give the combination of path and shapes as an input to image source.?