mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-02 15:50:51 +08:00
缩略图
This commit is contained in:
@@ -34,6 +34,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
PageBackground = diagramView.DiagramOption.LayoutOption.PageBackground;
|
||||
AllowDrop = diagramView.DiagramOption.LayoutOption.AllowDrop;
|
||||
|
||||
GenerateThumbnail = diagramView.GenerateThumbnail;
|
||||
Thumbnail = diagramView.Thumbnail?.ToBase64String();
|
||||
|
||||
var selectedDesignerItems = diagramView.Items.OfType<DesignerItemViewModelBase>();
|
||||
@@ -202,5 +203,12 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public bool GenerateThumbnail
|
||||
{
|
||||
|
||||
get;set;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -876,9 +876,11 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
DiagramOption.LayoutOption.PhysicalGridMarginSize = diagramItem.PhysicalGridMarginSize;
|
||||
DiagramOption.LayoutOption.GridColor = diagramItem.GridColor;
|
||||
DiagramOption.LayoutOption.PageBackground = diagramItem.PageBackground;
|
||||
DiagramOption.LayoutOption.AllowDrop = diagramItem.AllowDrop;
|
||||
DiagramOption.LayoutOption.AllowDrop = diagramItem.AllowDrop;
|
||||
|
||||
GenerateThumbnail = diagramItem.GenerateThumbnail;
|
||||
Thumbnail = diagramItem.Thumbnail?.ToBrush((int)DiagramOption.LayoutOption.PageSize.Width, (int)DiagramOption.LayoutOption.PageSize.Height);
|
||||
|
||||
Init(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user