mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-02 15:16:37 +08:00
缩略图优化
This commit is contained in:
@@ -302,12 +302,12 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
|
||||
if (e.OldValue is IDiagramViewModel oldvalue)
|
||||
{
|
||||
//var image = this.ToBitmap().ToBitmapSource();
|
||||
//oldvalue.Thumbnail = new ImageBrush(image) { Stretch = Stretch.Uniform };
|
||||
|
||||
}
|
||||
if (e.NewValue is IDiagramViewModel newvalue)
|
||||
{
|
||||
newvalue.Thumbnail = new VisualBrush(this) { Stretch = Stretch.Uniform };
|
||||
if (newvalue.GenerateThumbnail)
|
||||
newvalue.Thumbnail = new VisualBrush(this) { Stretch = Stretch.Uniform };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user