helloworld

This commit is contained in:
艾竹
2023-08-06 22:24:26 +08:00
parent fe3e8b9ae1
commit 8f7a43accd
3 changed files with 5 additions and 5 deletions

View File

@@ -220,9 +220,9 @@ namespace AIStudio.Wpf.DiagramDesigner.Controls
DesignerItem.ExitPreviewExecuteEdit();
if (firstPoint == e.GetPosition(this))
{
DesignerItem.EditCommand?.Execute(e.GetPosition(this));
firstPoint = null;
DesignerItem.EditCommand?.Execute(e.GetPosition(this));
}
firstPoint = null;
}
}

View File

@@ -48,7 +48,7 @@ namespace AIStudio.Wpf.DiagramDesigner.Converters
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return DependencyProperty.UnsetValue;
return !(bool)value;
}
}
#endregion

View File

@@ -795,12 +795,12 @@ namespace AIStudio.Wpf.DiagramDesigner
return new RectangleBase(left, top, right, bottom, true);
}
public double GetItemWidth()
public virtual double GetItemWidth()
{
return double.IsNaN(ItemWidth) ? Math.Max(ActualItemWidth, MinItemWidth) : ItemWidth;
}
public double GetItemHeight()
public virtual double GetItemHeight()
{
return double.IsNaN(ItemHeight) ? Math.Max(ActualItemHeight, MinItemHeight) : ItemHeight;
}