mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +08:00
程序添加绘图元素,Demo完成一半
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user