For example, the xaml exported with the setting as per the previous post is as follows.
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Image Stretch="Uniform">
<Image.Source>
<DrawingImage>
<DrawingImage.Drawing>
<DrawingGroup>
<DrawingGroup>
<DrawingGroup>
<DrawingGroup>
<GeometryDrawing Brush="Black" Geometry="F1M15.996,0C7.162,0 0,7.176 0,16.007 0,24.842 7.162,32 15.996,32 24.832,32 32,24.842 32,16.007 32,7.176 24.832,0 15.996,0z M18.785,29.221L13.215,29.221 13.215,13.13 18.785,13.13 18.785,29.221z M16.002,9.277C14.207,9.277 12.754,7.822 12.754,6.028 12.754,4.226 14.207,2.779 16.002,2.779 17.791,2.779 19.246,4.226 19.246,6.028 19.246,7.822 17.791,9.277 16.002,9.277z"/>
</DrawingGroup>
</DrawingGroup>
</DrawingGroup>
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
</UserControl>
The xaml generated by using readersvg objects ReadGeometry and GetXaml methods is as follows.
<Image xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Stretch="Uniform">
<Image.Source>
<DrawingImage>
<DrawingImage.Drawing>
<DrawingGroup>
<DrawingGroup>
<DrawingGroup.Transform>
<TranslateTransform X="0" Y="0.000375187519239262"/>
</DrawingGroup.Transform>
<DrawingGroup>
<DrawingGroup>
<GeometryDrawing Brush="#FF000000" Geometry="F1M15.996,0C7.162,0 0,7.176 0,16.007 0,24.842 7.162,32 15.996,32 24.832,32 32,24.842 32,16.007 32,7.176 24.832,0 15.996,0z M18.785,29.221L13.215,29.221 13.215,13.13 18.785,13.13 18.785,29.221z M16.002,9.277C14.207,9.277 12.754,7.822 12.754,6.028 12.754,4.226 14.207,2.779 16.002,2.779 17.791,2.779 19.246,4.226 19.246,6.028 19.246,7.822 17.791,9.277 16.002,9.277z"/>
</DrawingGroup>
</DrawingGroup>
</DrawingGroup>
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
As I had mentioned the following is the difference.
<DrawingGroup.Transform>
<TranslateTransform X="0" Y="0.000375187519239262"/>
</DrawingGroup.Transform>
Also why is that so many DrawingGroup elements added which are empty?. The image looks fine but I am concerned about my xaml text.
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Image Stretch="Uniform">
<Image.Source>
<DrawingImage>
<DrawingImage.Drawing>
<DrawingGroup>
<DrawingGroup>
<DrawingGroup>
<DrawingGroup>
<GeometryDrawing Brush="Black" Geometry="F1M15.996,0C7.162,0 0,7.176 0,16.007 0,24.842 7.162,32 15.996,32 24.832,32 32,24.842 32,16.007 32,7.176 24.832,0 15.996,0z M18.785,29.221L13.215,29.221 13.215,13.13 18.785,13.13 18.785,29.221z M16.002,9.277C14.207,9.277 12.754,7.822 12.754,6.028 12.754,4.226 14.207,2.779 16.002,2.779 17.791,2.779 19.246,4.226 19.246,6.028 19.246,7.822 17.791,9.277 16.002,9.277z"/>
</DrawingGroup>
</DrawingGroup>
</DrawingGroup>
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
</UserControl>
The xaml generated by using readersvg objects ReadGeometry and GetXaml methods is as follows.
<Image xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Stretch="Uniform">
<Image.Source>
<DrawingImage>
<DrawingImage.Drawing>
<DrawingGroup>
<DrawingGroup>
<DrawingGroup.Transform>
<TranslateTransform X="0" Y="0.000375187519239262"/>
</DrawingGroup.Transform>
<DrawingGroup>
<DrawingGroup>
<GeometryDrawing Brush="#FF000000" Geometry="F1M15.996,0C7.162,0 0,7.176 0,16.007 0,24.842 7.162,32 15.996,32 24.832,32 32,24.842 32,16.007 32,7.176 24.832,0 15.996,0z M18.785,29.221L13.215,29.221 13.215,13.13 18.785,13.13 18.785,29.221z M16.002,9.277C14.207,9.277 12.754,7.822 12.754,6.028 12.754,4.226 14.207,2.779 16.002,2.779 17.791,2.779 19.246,4.226 19.246,6.028 19.246,7.822 17.791,9.277 16.002,9.277z"/>
</DrawingGroup>
</DrawingGroup>
</DrawingGroup>
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
As I had mentioned the following is the difference.
<DrawingGroup.Transform>
<TranslateTransform X="0" Y="0.000375187519239262"/>
</DrawingGroup.Transform>
Also why is that so many DrawingGroup elements added which are empty?. The image looks fine but I am concerned about my xaml text.

