Hi,
currently I'm having a problem, where nodes with shapes with OutlineFormulas depending on ShapeControlPoints are not stored in the XML-File. Is there any way to save the manipulated shapes in the XML-File?
Sample Code:
string outline = @"MoveTo(Width * p0.X/100,Height * p0.Y/100);
LineTo(Width * p1.X/100,Height * p1.Y/100);
LineTo(Width * p2.X/100,Height * p2.Y/100);
LineTo(Width * p3.X/100,Height * p3.Y/100);
LineTo(Width * p0.X/100,Height * p0.Y/100);";
node.Shape = new Shape(outline, "", new List<ShapeControlPoint>
{
new ShapeControlPoint("p0",
0, 0, 100, UnitType.Percentage,
0, 0, 100, UnitType.Percentage) { MaxXRelativeToWidth = true },
new ShapeControlPoint("p1",
0, 0, 100, UnitType.Percentage,
100, 0, 100, UnitType.Percentage) { MaxXRelativeToWidth = true },
new ShapeControlPoint("p2",
100, 0, 100, UnitType.Percentage,
100, 0, 100, UnitType.Percentage) { MaxXRelativeToWidth = true },
new ShapeControlPoint("p3",
100, 0, 100, UnitType.Percentage,
0, 0, 100, UnitType.Percentage) { MaxXRelativeToWidth = true },
},
"id");
Best regards,
Cyrinael