mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-12 12:16:37 +08:00
helloworld
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user