mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-20 00:16:36 +08:00
绘图形状补充一部分
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Media;
|
||||
using System.Xml.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
@@ -19,6 +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;
|
||||
//}
|
||||
this.Points = item.Points;
|
||||
this.DrawMode = item.DrawMode;
|
||||
}
|
||||
@@ -35,6 +40,25 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
get; set;
|
||||
}
|
||||
|
||||
//[XmlIgnore]
|
||||
//public Matrix Matrix
|
||||
//{
|
||||
// get; set;
|
||||
//}
|
||||
//[JsonIgnore]
|
||||
//[XmlElement("Matrix")]
|
||||
//public string XmlMatrix
|
||||
//{
|
||||
// get
|
||||
// {
|
||||
// return SerializeHelper.SerializeMatrix(Matrix);
|
||||
// }
|
||||
// set
|
||||
// {
|
||||
// Matrix = SerializeHelper.DeserializeMatrix(value);
|
||||
// }
|
||||
//}
|
||||
|
||||
[XmlIgnore]
|
||||
public List<Point> Points
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user