程序添加绘图元素,Demo完成一半

This commit is contained in:
艾竹
2023-05-14 23:26:08 +08:00
parent 40f81b7209
commit da9cdb55c9
25 changed files with 1225 additions and 124 deletions

View File

@@ -20,10 +20,10 @@ namespace AIStudio.Wpf.DiagramDesigner
{
this.Erasable = item.Erasable;
this.Geometry = item.Geometry.ToString();
//if (item.Geometry.Transform != null)
//{
// this.Matrix = item.Geometry.Transform.Value;
//}
if (item.Geometry.Transform != null)
{
this.Matrix = item.Geometry.Transform.Value.ToString();
}
this.Points = item.Points;
this.DrawMode = item.DrawMode;
}
@@ -40,11 +40,11 @@ namespace AIStudio.Wpf.DiagramDesigner
get; set;
}
//[XmlIgnore]
//public Matrix Matrix
//{
// get; set;
//}
[XmlAttribute]
public string Matrix
{
get; set;
}
//[JsonIgnore]
//[XmlElement("Matrix")]
//public string XmlMatrix