mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-02 15:50:51 +08:00
bug修复
This commit is contained in:
@@ -65,6 +65,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
this.ChildFlag = designer.ChildFlag;
|
||||
this.PhysicalItemWidth = designer.PhysicalItemWidth;
|
||||
this.PhysicalItemHeight = designer.PhysicalItemHeight;
|
||||
this.Parameter = new ConstParameter(designer.Parameter);
|
||||
if (designer.Children != null)
|
||||
{
|
||||
foreach (var child in designer.Children)
|
||||
@@ -178,8 +179,8 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
}
|
||||
}
|
||||
|
||||
private IParameter _parameter;
|
||||
public IParameter Parameter
|
||||
private ConstParameter _parameter;
|
||||
public ConstParameter Parameter
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
@@ -859,7 +859,8 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
DiagramOption.LayoutOption.PageSizeType = diagramItem.PageSizeType;
|
||||
DiagramOption.LayoutOption.PhysicalGridMarginSize = diagramItem.PhysicalGridMarginSize;
|
||||
DiagramOption.LayoutOption.GridColor = diagramItem.GridColor;
|
||||
DiagramOption.LayoutOption.AllowDrop = diagramItem.AllowDrop;
|
||||
DiagramOption.LayoutOption.PageBackground = diagramItem.PageBackground;
|
||||
DiagramOption.LayoutOption.AllowDrop = diagramItem.AllowDrop;
|
||||
|
||||
Thumbnail = diagramItem.Thumbnail.ToBrush((int)DiagramOption.LayoutOption.PageSize.Width / 4, (int)DiagramOption.LayoutOption.PageSize.Height / 4);
|
||||
Init(true);
|
||||
|
||||
Reference in New Issue
Block a user