mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-01 22:56:35 +08:00
block的序列化与反序列化
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user