mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-12 20:26:35 +08:00
序列化继续改进
This commit is contained in:
@@ -25,12 +25,26 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
Offset = viewmodel.Offset;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
[XmlIgnore]
|
||||
public double? Distance
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[JsonIgnore]
|
||||
[XmlAttribute("Distance")]
|
||||
public string XmlDistance
|
||||
{
|
||||
get
|
||||
{
|
||||
return SerializeHelper.SerializeDoubleNull(Distance);
|
||||
}
|
||||
set
|
||||
{
|
||||
Distance = SerializeHelper.DeserializeDoubleNull(value);
|
||||
}
|
||||
}
|
||||
|
||||
[XmlIgnore]
|
||||
public Point Offset
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user