block的序列化与反序列化

This commit is contained in:
艾竹
2023-07-15 10:20:50 +08:00
parent 954aeee87e
commit 515ce1944b
6 changed files with 233 additions and 49 deletions

View File

@@ -29,6 +29,8 @@ namespace AIStudio.Wpf.DiagramDesigner
this.ScaleY = viewmodel.ScaleY;
this.PhysicalItemWidth = viewmodel.PhysicalItemWidth;
this.PhysicalItemHeight = viewmodel.PhysicalItemHeight;
this.MinItemWidth = viewmodel.MinItemWidth;
this.MinItemHeight = viewmodel.MinItemHeight;
this.Icon = viewmodel.Icon;
this.ItemTypeName = viewmodel.GetType().FullName;
this.Margin = viewmodel.Margin;
@@ -89,6 +91,19 @@ namespace AIStudio.Wpf.DiagramDesigner
get; set;
}
[XmlAttribute]
public double MinItemWidth
{
get; set;
}
[XmlAttribute]
public double MinItemHeight
{
get; set;
}
[XmlAttribute]
public string Icon
{