06-14-2017, 03:17 AM
If I changed the color of one of the drawings, no problems in the result, xaml of which got via ReadXML() looks:
<Image xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Stretch="Uniform">
<Image.Resources>
</Image.Resources>
<Image.Source>
<DrawingImage xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" PresentationOptions:Freeze="True">
<DrawingImage.Drawing>
<DrawingGroup>
<GeometryDrawing Brush="Aqua" Geometry="F1M807,379L630,578 407,724 322,471 308,204 569,258z"/>
<GeometryDrawing Brush="Green" Geometry="F1M889,0L544,988 1002,1092 318,299 0,643 1029,448z"/>
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
However with original file, 2 GeometryDrawing entry is combined into one:
<DrawingImage.Drawing>
<DrawingGroup>
<GeometryDrawing Brush="Green" Geometry="F1M807,379L630,578 407,724 322,471 308,204 569,258z M889,0L544,988 1002,1092 318,299 0,643 1029,448z"/>
</DrawingGroup>
</DrawingImage.Drawing>
Is it the cause of this problem?
<Image xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Stretch="Uniform">
<Image.Resources>
</Image.Resources>
<Image.Source>
<DrawingImage xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" PresentationOptions:Freeze="True">
<DrawingImage.Drawing>
<DrawingGroup>
<GeometryDrawing Brush="Aqua" Geometry="F1M807,379L630,578 407,724 322,471 308,204 569,258z"/>
<GeometryDrawing Brush="Green" Geometry="F1M889,0L544,988 1002,1092 318,299 0,643 1029,448z"/>
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
However with original file, 2 GeometryDrawing entry is combined into one:
<DrawingImage.Drawing>
<DrawingGroup>
<GeometryDrawing Brush="Green" Geometry="F1M807,379L630,578 407,724 322,471 308,204 569,258z M889,0L544,988 1002,1092 318,299 0,643 1029,448z"/>
</DrawingGroup>
</DrawingImage.Drawing>
Is it the cause of this problem?