适应窗口大小完成

This commit is contained in:
艾竹
2023-03-12 22:47:45 +08:00
parent e2753b0bff
commit f22d6dd3f1
18 changed files with 280 additions and 42 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Windows;
namespace AIStudio.Wpf.DiagramDesigner.Geometrys
{
@@ -1069,6 +1070,16 @@ namespace AIStudio.Wpf.DiagramDesigner.Geometrys
// return value;
//}
public static implicit operator RectangleBase(Rect rect)
{
return new RectangleBase(rect.Left, rect.Top, rect.Width, rect.Height);
}
public static implicit operator Rect(RectangleBase rect)
{
return new Rect(rect.Left, rect.Top, rect.Width, rect.Height);
}
#endregion Public Methods
}